title: PowerShell XML select node with namespace
body: <p>I am trying to select nodes from an XML file but am encountering issue that appear to be caused by the namespace.</p>
  
  <p>The code below does not return anything. But if I remove the namespace from the XML file, I obtain the expected out.</p>
  
  <h2>MWE</h2>
  
  <pre class="lang-bsh prettyprint-override"><code>$StandaloneXML = "test.xml"
  # Load XML content
  $NewStandaloneXML = New-Object -TypeName "System.XML.XMLDocument"
  $NewStandaloneXML.Load($StandaloneXML)
  # Get namespace
  $Namespace = New-Object -TypeName "Xml.XmlNamespaceManager" -ArgumentList $NewStandaloneXML.NameTable
  $Namespace.AddNamespace("jboss", $NewStandaloneXML.DocumentElement.NamespaceURI)
  $NewStandaloneXML.SelectNodes("jboss:server/interfaces/interface", $Namespace)
  </code></pre>
  
  <h2>XML</h2>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" ?&gt;
  &lt;server xmlns="urn:jboss:domain:4.2"&gt;
    &lt;interfaces&gt;
        &lt;interface name="management"&gt;
            &lt;inet-address value="${jboss.bind.address.management:127.0.0.1}"/&gt;
        &lt;/interface&gt;
        &lt;interface name="public"&gt;
            &lt;inet-address value="${jboss.bind.address:127.0.0.1}"/&gt;
        &lt;/interface&gt;
    &lt;/interfaces&gt;
  &lt;/server&gt;
  </code></pre>
  
  <h2>Expected output</h2>
  
  <pre>
  name       inet-address
  ----       ------------
  management inet-address
  public     inet-address
  </pre>