title: Reading xml data using classic ASP
body: <p>I have written a code for reading xml data in classic asp as follows:</p>
  
  <pre><code>&lt;%
  
  
   Dim objxml
      Set objxml = Server.CreateObject("Microsoft.XMLDOM")
      objxml.async = False
      objxml.load ("/abc.in/xml.xml")
  
  
  
  set ElemProperty = objxml.getElementsByTagName("Product")
  set ElemEN = objxml.getElementsByTagName("Product/ProductCode")
  set Elemtown = objxml.getElementsByTagName("Product/ProductName")
  set Elemprovince = objxml.getElementsByTagName("Product/ProductPrice")  
  
  Response.Write(ElemProperty)
  Response.Write(ElemEN) 
  Response.Write(Elemprovince)
  For i=0 To (ElemProperty.length -1) 
  
      Response.Write " ProductCode = " 
      Response.Write(ElemEN) 
      Response.Write " ProductName = " 
      Response.Write(Elemtown) &amp; "&lt;br&gt;"
      Response.Write " ProductPrice = " 
      Response.Write(Elemprovince) &amp; "&lt;br&gt;"
  
  next
  
  Set objxml = Nothing 
  %&gt;
  </code></pre>
  
  <p>This code is not giving proper output.
  Please help me out.</p>
  
  <p>The xml is:</p>
  
  <pre><code>&lt;Product&gt;
     &lt;ProductCode&gt;abc&lt;/ProductCode&gt;
     &lt;ProductName&gt;CC Skye Hinge Bracelet Cuff with Buckle in Black&lt;/ProductName&gt;
  &lt;/Product&gt;
  </code></pre>