title: How to do XML Parsing
body: <p>This is my sample XML File:</p>
  
  <pre><code>&lt;Cars&gt;
       &lt;Make name="Maruthi"&gt;
           &lt;Model&gt;
               &lt;Name&gt;Wagnor&lt;/Name&gt;
               &lt;Release&gt;2000&lt;/Release&gt;
           &lt;/Model&gt;
       &lt;/Make&gt;
       &lt;Make name="Maruthi"&gt;
           &lt;Model&gt;
                &lt;Name&gt;Swift&lt;/Name&gt;
                &lt;Release&gt;2005&lt;/Release&gt;
           &lt;/Model&gt;
       &lt;/Make&gt;
       &lt;Make name="Hundai"&gt;
           &lt;Model&gt;
               &lt;Name&gt;i10&lt;/Name&gt;
               &lt;Release&gt;2003&lt;/Release&gt;
           &lt;/Model&gt;
       &lt;/Make&gt;
  &lt;/Cars&gt;
  </code></pre>
  
  <p>I want to retrieve all cars where Make Name is=Maruthi(so here i am expecting two Cars out of three)</p>
  
  <pre><code>Set o_XML=XMLUtil.CreateXMLFromFile("E:\Programming Samples\QTP Samples\Cars.xml")
  set o_ChildPath=o_XML.ChildElementsByPath("/Cars/Make/[name='Maruthi']")
  </code></pre>
  
  <p>'Here XMLUtil is utility object provided by QTP, but i dont see any problem there.</p>
  
  <p>The only problem is in evaluating the expression. I tried different expressions but i am getting "expression must evalute to a node-set".</p>
  
  <p>Can someone help in here?</p>