title: Need to add a node at a specific position in XML in QTP
body: <p>I need to add a node at a specific position. please check the example below.</p>
  
  <pre><code>&lt;root&gt;
  &lt;ASNHeader&gt;
  &lt;ASNStart&gt;text&lt;/ASNStart&gt;
  &lt;ASNprop&gt;text_prop&lt;/ASNprop&gt;
  &lt;ASNDetail&gt;
  &lt;ASNAprvr&gt;Mr.X&lt;/ASNAprvr&gt;
  &lt;ASNAprvrDt&gt;20Mar&lt;/ASNAprvrDT&gt;
  &lt;ASNAprvrSub&gt;XXX&lt;/ASNAprvrsUB&gt;
  &lt;/ASNDetail&gt;
  &lt;ASNSHIP&gt;XYZ&lt;/ASNSHIP&gt;
  &lt;ASNSRDC&gt;XYZ123&lt;/ASNSRDC&gt;
  &lt;/ASNHeader&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>Here i have to copy "ASNDetail" tag and paste it after existing "ASNDetail" and before "ASNSHIP" tag. I need to copy paste this based on the number of times user specifies.
  Note: I have to do this in QTP and i'm using MSXML2.DomDocument as xml parser. can anyone suggest a way. AppendChild copies it after "ASNSRDC" tag but i don't want in this way.
  Here "ASNHeader" is child of "root". ASNDetail is child of "root\ASNHeader". I am not format the code properly in this post. kindly adjust.</p>