title: xmllint: xmlns on a non-root xml element?
body: <pre><code>xmllint --xpath "//project" test.xml
  </code></pre>
  
  <p>fails on</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;projects&gt;
    &lt;project xmlns="http://maven.apache.org/POM/4.0.0"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;/project&gt;
  &lt;/projects&gt;
  </code></pre>
  
  <p>but succeeds if I remove the xmlns attribute like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;projects&gt;
    &lt;project&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;/project&gt;
  &lt;/projects&gt;
  </code></pre>
  
  <p>Is there some problem with this? Is xmlns legal on non-top level tags?</p>
  
  <p>I'm using Java Maven:</p>
  
  <pre><code>mvn help:effective-pom
  </code></pre>
  
  <p>and that generates xml with the xmlns on the non-top elements like shown.</p>