Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - How to avoid an Element parsing in an XML File while validating the XML File with an XSD [Thread Next] Re: How to avoid an Element parsing in an XML File while validating the XML File with an XSDTo: NULL Date: 10/1/2008 12:28:00 PM kmadhubabu82@g... wrote: > 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
