I'm new to Schema validation and I'm having a code which performs schema validation using "ValidationType.Schema".
There are a few tags which are optional in my output XML file and to validate this I've set the corresponding XSD file tags as "MinOccurs = 0", however I'm still getting the schema validation failed errors.
I'm not able to figure out if the SEQUENCE in which the tags are mentioned in the XSD also matter with the SEQUENCE of the tags in XML file or does this only validate the existance.
Ex:
CASE 1:
---OUTPUT XML---<tag1>1</tag1>
<tag2>2</tag2>
----XSD File<tag1>
<tag2>
CASE 2:
---OUTPUT XML---<tag2>1</tag2>
<tag1>2</tag1>
----XSD File<tag1>
<tag2>
which one of these will fail? if any?
I'm using the validation type as "ValidationType.Schema"
Thanks for your help.
ValidationType.Schema validation
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment