title: XML selectNodes using Classic ASP
body: <p>XML problem that's got me stumped, but is probably very simple...</p>
  
  <p>The XML is like:</p>
  
  <pre><code>    &lt;header&gt;
      &lt;createdOn&gt;16 Sep 2009&lt;/createdOn&gt;
      &lt;createdBy&gt;Jez&lt;/createdBy&gt;
  &lt;/header&gt;
  &lt;agents&gt;
      &lt;agent&gt;
              &lt;agentDetails&gt;
                      &lt;agentName&gt;text&lt;/agentName&gt;
                      &lt;agentTelephone&gt;text&lt;/agentTelephone&gt;
              &lt;/agentDetails&gt;
              &lt;properties&gt;
                      &lt;property&gt;
                              &lt;propertyid&gt;number&lt;/propertyid&gt;
                              &lt;address&gt;
                                      &lt;number&gt;1&lt;/number&gt;
                                      &lt;street&gt;High St&lt;/street&gt;
                                      &lt;postcode&gt;&lt;/postcode&gt;
                                      &lt;country&gt;UK&lt;/country&gt;
                              &lt;/address&gt;
                              &lt;price&gt;
                                      &lt;category&gt;text&lt;/category&gt;
                                      &lt;price&gt;number&lt;/price&gt;
                                      &lt;reference&gt;text&lt;/reference&gt;
                              &lt;/price&gt;
                              &lt;description&gt;
                                      &lt;propertyType&gt;House&lt;/propertyType&gt;
                                      &lt;bedrooms&gt;2&lt;/bedrooms&gt;
                                      &lt;bathrooms&gt;1&lt;/bathrooms&gt;
                                      &lt;sleeps&gt;
                                      &lt;briefDescription&gt;text&lt;/briefDescription&gt;
                                      &lt;addDescription&gt;long-text&lt;/addDescription&gt;
                                      &lt;floorSize&gt;
                                              &lt;size&gt;80&lt;/size&gt;
                                              &lt;type&gt;sq. mt&lt;/type&gt;
                                      &lt;/floorSize&gt;
                                      &lt;bullets&gt;
                                              &lt;bullet&gt;No Of Bedrooms : 2&lt;/bullet&gt;
                                              &lt;bullet&gt;Condition : Habitable&lt;/bullet&gt;
                                              &lt;bullet&gt;Land Size (M2): 2,000&lt;/bullet&gt;
                                      &lt;/bullets&gt;
                              &lt;/description&gt;
                              &lt;images&gt;
                                      &lt;image&gt;
                                              &lt;thumbnail&gt;URL&lt;/thumbnail&gt;
                                              &lt;image&gt;URL&lt;/image&gt;
                                              &lt;alttext&gt;&lt;/alttext&gt;
                                      &lt;/image&gt;
                                      &lt;image&gt;
                                              &lt;thumbnail&gt;URL&lt;/thumbnail&gt;
                                              &lt;image&gt;URL&lt;/image&gt;
                                              &lt;alttext&gt;&lt;/alttext&gt;
                                      &lt;/image&gt;
                              &lt;/images&gt;
                              &lt;links&gt;
                                      &lt;link&gt;
                                              &lt;type&gt;text&lt;/type&gt;
                                              &lt;url&gt;url&lt;/url&gt;
                                      &lt;/link&gt;
                                      &lt;link&gt;
                                              &lt;type&gt;text&lt;/type&gt;
                                              &lt;url&gt;url&lt;/url&gt;
                                      &lt;/link&gt;
                              &lt;/links&gt;
                      &lt;/property&gt;
              &lt;/properties&gt;
      &lt;/agent&gt;
   &lt;/agents&gt;
  </code></pre>
  
  <p>And the code I would like to use is:</p>
  
  <pre><code>    Set NodeList = objXML.documentElement.selectNodes("agents/agent/properties/property")
  For Each Node In NodeList
      'I want to be able to extract distinct fields here...
      response.write Node.selectSingleNode("address/street") &amp; "&lt;br/&gt;"
      response.write Node.selectSingleNode("description/briefDescription") &amp; "&lt;br/&gt;"
  Next
  </code></pre>
  
  <p>But, I don't know how.</p>
  
  <p>ALso, this could be a problem with, for example, the <code>&lt;images&gt;</code> and <code>&lt;links&gt;</code> tags.</p>
  
  <p>Suggestions please?</p>