title: How can I get an XML attribute by name instead of iterating over all the attributes?
body: <p>I'm using vb script and MSXML2.DOMDocument  to parse a xml document.</p>
  
  <p>Is it possible get a particular attribute by name instead of iterating over all the attributes?</p>
  
  <p>Today I am doing this</p>
  
  <pre><code>For x = 0 To (curNode.Attributes.length - 1)
      sAttrName = curNode.Attributes.Item(x).nodeName
       if sAttrName = 'customer' then 
          avalue=curNode.Attributes.Item(x).nodeValue
  </code></pre>
  
  <p>but I want do something like this</p>
  
  <pre><code> avalue=curNode.Attributes.Item("customer").nodeValue
  </code></pre>