I would suggest using XSLT or custom program to extract the part of interest, 
and validate that.
john

-----Original Message-----
From: Ralph van Etten [mailto:[email protected]] 
Sent: Monday, October 26, 2009 2:00 AM
To: [email protected]
Subject: partial schema validation

Hi,

I want to validate only a small part of an XML document against an XSD. Can 
xerces-c do this?

I have a large XML file but I only use a small part of this XML file and only 
for this small part I have an XSD file. This part can be placed anywhere in the 
XML file and the rest of the XML file can be anything.

Should I:

1. modify the xsd so it allows anything as parent elements (is this even 
possible?)

or

2. instruct xerces to only validate part of the xml document and ignore the 
rest, how can I tell xerces to do this?


Thanks,

Ralph.

Reply via email to