- From: H H <hitch4hike@yahoo.com>
- Date: Tue, 1 May 2007 14:35:27 -0700 (PDT)
- To: xmlschema-dev@w3.org
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?
Check outnew cars at Yahoo! Autos.
--0-2057782000-1178055327=:62367
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
<div>I am stumped with what seems to be a simple question. Any help will be much appreciated.</div> <div> </div> <div>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:</div> <div> </div> <div>Root element has 1 or more <content> element</div> <div> </div> <div>Each <content> element has :</div> <div>- Exactly one <ID></div> <div>- Exactly one <Code></div> <div>- Exactly one <Description></div> <div>- Exactly one <Purpose></div> <div> </div> <div><content> element could have other elements, attributes, comments, etc. that I am not interested in. </div> <div> </div> <div>Is there a simple way to express this.</div> <div> </div> <div> </div> <div> </div> <div> </div> <div> </div><p> 
<hr size=1>Ahhh...imagining that irresistible "new car" smell?<br> Check out
<a href="http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM-">new cars at Yahoo! Autos.</a>
--0-2057782000-1178055327=:62367--
Received on Wednesday, 2 May 2007 03:18:26 UTC