I have some code-generated XML. I have written an XSD to validate the XML. I have tags in them XML that do not need to be validated. Is there any way to validate particular tags and skip the others?
The example XML is:
<person>
<firstname>Name</firstname>
<lastname>Name</lastname>
<tag1>data</tag1>
<tag2>data</tag2>
<tag3>data</tag3>
</person>
I need to validate only <firstname>
and <lastname>
and to skip the validation of all other elements.