title: What is the easiest way of removing the attribute of a node of an xml file in vb?
body: <p>I'm familiar with using the MSXML2 library for reading xml files. But is there an easy way of editing a particular node. Say I have the following line of code that selects a <code>dataroot</code> element that has the attribute <code>generated</code>:</p>
  
  <pre><code>Dim oDoc as MSXML2.DOMDocument
  Dim oNode as MSXML2.IXMLDOMNode    
  
  Set oDoc = ... //open xml file here//
  Set oNode = oDoc.selectSingleNode("/root/dataroot/[@generated]")
  </code></pre>
  
  <p>I want to be able to remove the <code>generated</code> attribute from the selected node and save the change back to the original file.</p>