title: getElementByTagName v/s getElementByTagNameNS
body: <p>The environment is Java, the scenario is as following</p>
  
  <p>I have an XML file, which I have converted to Document and the namespaceaware was true at the document builder factory level. When I am doing <code>getElementsByTagName</code> and I provide a string which is "prefix:elementName", it works fine. </p>
  
  <p>Question: shouldn't this fail? I was under the impression that I will have to use <code>getElementsByTagNameNS</code>. I understand that there are pitfalls to <code>getElementsByTagName</code> if the prefix were to change.</p>
  
  <p>Also, the second question is, what effect does setting namespaceaware as true/false at the factory level has on the getElements methods. From what I have tested <code>getElementsByTagName</code> works fine, the way I have mentioned, in any case.</p>