I am stumped with what seems to be a simple question. Any help will be much appreciated.
I want to validate an XML file on few specific elements and ignore everything else. I am interested in only a section of the XML file. I have following constraint that I want to check:
Root element has 1 or more <content> element
Each <content> element has :
- Exactly one <ID>
- Exactly one <Code>
- Exactly one <Description>
- Exactly one <Purpose>
<content> element could have other elements, attributes, comments, etc. that I am not interested in.
Is there a simple way to express this.
Ahhh...imagining that irresistible "new car" smell?
new cars at Yahoo! Autos.