Flexible schema validation question

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>&nbsp;</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>&nbsp;</div>  <div>Root element has 1 or more &lt;content&gt; element</div>  <div>&nbsp;</div>  <div>Each &lt;content&gt; element has :</div>  <div>- Exactly one &lt;ID&gt;</div>  <div>- Exactly one &lt;Code&gt;</div>  <div>- Exactly one &lt;Description&gt;</div>  <div>- Exactly one &lt;Purpose&gt;</div>  <div>&nbsp;</div>  <div>&lt;content&gt; element could have other elements, attributes, comments, etc. that I am not interested in. </div>  <div>&nbsp;</div>  <div>Is there a simple way to express this.</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>&nbsp;</div><p>&#32;



      <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