title: Compare two xml files using VBS in QTP
body: <p>I need to compare 2 xml files using QTP where the values for each tag needs to be compared and need to print the difference in values if found. I used the built in Function <strong>XMLUTIL</strong> but its not working as expected i.e.. its creates a file with differences including the parent tag.</p>
  
  <pre><code>&lt;tns:AAL_Request_NEW xsi:schemaLocation="http://www.bnymellon.com/AAL_Request_NEW  AAL_Request_NEW.xsd"&gt;
    &lt;tns:OPF_Information&gt;
      &lt;tns:Source&gt;
        &lt;tns:Source&gt;EPH&lt;/tns:Source&gt;
      &lt;/tns:Source&gt;
      &lt;tns:References&gt;
        &lt;tns:Accounting_Record_Reference&gt;130830000672401&lt;/tns:Accounting_Record_Reference&gt;
        &lt;tns:OPF_Reference&gt;EPH1308300006724&lt;/tns:OPF_Reference&gt;
        &lt;tns:Group_Reference&gt;EPH1308300006723&lt;/tns:Group_Reference&gt;
      &lt;/tns:References&gt;
    &lt;/tns:OPF_Information&gt;
  &lt;/tns:AAL_Request_NEW&gt;
  </code></pre>
  
  <p>In the above xml file i just need the tags with values like</p>
  
  <p>tns:Source with value <strong>EPH</strong>, tns:Accounting_Record_Reference with value 130830000672401, tns:OPF_Reference with value EPH1308300006724 and tns:Group_Reference EPH1308300006723 to be compared and not the parent tags like tns:References, tns:OPF_Information or tns:AAL_Request_NEW. </p>
  
  <p>Can anyone help with the logic to fetch the tags which has no child tag inside it and ends immediately with having only a value between its start &lt;> and end  and compare it with the other file and print the tag name and the values if there is a difference?</p>