Connecting Tech Pros Worldwide Help | Site Map

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

  #1  
Old September 30th, 2008, 08:55 PM
kmadhubabu82@gmail.com
Guest
 
Posts: n/a
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
  #2  
Old October 1st, 2008, 11:35 AM
Martin Honnen
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Download the JAVA , .NET and SQL Server interview with answers Jobs answers 2 September 26th, 2006 02:25 PM
Download the JAVA , .NET and SQL Server interview PDF Jobs answers 0 September 17th, 2006 02:05 PM