Connecting Tech Pros Worldwide Forums | Help | Site Map

How to avoid an Element parsing in an XML File while validating theXML File with an XSD

kmadhubabu82@gmail.com
Guest
 
Posts: n/a
#1: Sep 30 '08
Dear All,
I have an XML file and an XSD.
I am validating the XML file with the XSD for the correct structure.
Is there any way where we can neglect 1 or more XML elements to be
validated against the XSD.

Appreciate your Help.

Thanks & Regards
Madhu K
Martin Honnen
Guest
 
Posts: n/a
#2: Oct 1 '08

re: How to avoid an Element parsing in an XML File while validating theXML File with an XSD


kmadhubabu82@gmail.com wrote:
Quote:
I have an XML file and an XSD.
I am validating the XML file with the XSD for the correct structure.
Is there any way where we can neglect 1 or more XML elements to be
validated against the XSD.
If you can change the schema then you can make use of the xs:any element
and its attribute processContents which you can set to lax validation
(processor will validate only if a matching schema definition is found)
or to skip validation.
See http://www.w3.org/TR/xmlschema-0/#any for an introduction and
example on using xs:any.


--

Martin Honnen
http://JavaScript.FAQTs.com/
Closed Thread