title: What is the purpose of setNamespaceAware in DocumentBuilder?
body: <p>Would someone please let in which condition should I set  <code>setNamespaceAware</code> to <code>true</code> or <code>false</code></p>
  
  <p>According to documentation <code>Specifies that the parser produced by this code will provide support for XML namespaces.</code></p>
  
  <p>However if I set that to true, for XML tags with Namespace it gives error. </p>
  
  <pre><code>DocumentBuilderFactory document_builder_factory = null;
  DocumentBuilder builder = null;
  document_builder_factory = DocumentBuilderFactory.newInstance();
  document_builder_factory.setNamespaceAware(true);
  
  try{
      Text text = new Text();
  
      text.set("&lt;h:test&gt;10&lt;/h:test&gt;");
      builder = document_builder_factory.newDocumentBuilder();
  
      Document doc = builder.parse(new InputSource(new StringReader(text.toString())));;
      System.out.println(doc.getElementsByTagName("h:test").item(0).getChildNodes().item(0).getNodeValue());
  
  }catch (Exception e){
  
  }
  </code></pre>
  
  <p>I get the following error if <code>setNamespaceAware</code> is set to <code>true</code>. </p>
  
  <blockquote>
    <p>[Fatal Error] :1:9: The prefix "h" for element "h:test" is not bound.</p>
  </blockquote>
  
  <p>If I don't set it, I get the value without any error.</p>