title: How can I comment out a node in XML using PowerShell?
body: <p>Is it possible to comment out a node in an XDocument?</p>
  
  <p>I have following tag.</p>
  
  <pre><code>&lt;abc key="test" value="samplevalue"&gt;&lt;/abc&gt;
  </code></pre>
  
  <p>I don't have to remove the node; I just want it to be there in the XML file in commented format. I can use something like this:</p>
  
  <pre><code>$node = $xml.selectSingleNode('//abc')
  #$node.OuterXml.Insert(0,"#");
  $node.$xml.Save("c:\test.xml")
  </code></pre>
  
  <p>But if one node spreads in two lines like</p>
  
  <pre><code>&lt;abc key="test" value="sampleValue"&gt;
  &lt;/abc&gt;
  </code></pre>
  
  <p>then how do I handle this case?</p>