title: Retrieve the value of a XML attribute in VBS
body: <pre><code>&lt;Requirement Description="description" Operation="Configure"&gt;
     &lt;Action ID="1000" Name="Split"&gt;
       &lt;Contract&gt;
         &lt;Parameter Name="Version"&gt;4&lt;/Parameter&gt;
         &lt;Parameter Name="DefaultServer"&gt;192.168.00.&lt;/Parameter&gt;
         &lt;Parameter Name="DefaultUser"&gt;administrator&lt;/Parameter&gt;
         &lt;Parameter Name="DefaultPassword"&gt;password&lt;/Parameter&gt;
         &lt;Parameter Name="DefaultDomain"&gt;192.168.00.00&lt;/Parameter&gt;
         &lt;Parameter Name="Split"&gt;1&lt;/Parameter&gt;
       &lt;/Contract&gt;
     &lt;/Action&gt;
  &lt;/Requirement&gt;
  </code></pre>
  
  <p>From the above XML document my aim is to replace the IP address for both the attributes default server and default domain from a VBScript.</p>
  
  <pre><code>Set objXMLDoc = CreateObject("Microsoft.XMLDOM")
  objXMLDoc.async = False
  objXMLDoc.load(XMLFullPath) 
  Set NodeList = objXMLDoc.documentElement.SelectNodes("//Parameter")
  
  NodeList(i).nodeName 
  </code></pre>
  
  <p>Give name as Parameter and <code>NodeList(i).Text</code> gives me values like 4, IP address, administrator and others. But I am not able to get the attribute name so that I can directly change the value of the attribute. </p>