title: getting the localName of XML node
body: <p>I have an xml which looks like </p>
  
  <pre><code>&lt;Personnel&gt;
    &lt;Employee type="permanent"&gt;
          &lt;Name&gt;Seagull&lt;/Name&gt;
          &lt;Id&gt;3674&lt;/Id&gt;
          &lt;Age&gt;34&lt;/Age&gt;
     &lt;/Employee&gt;
    &lt;Employee type="contract"&gt;
          &lt;Name&gt;Robin&lt;/Name&gt;
          &lt;Id&gt;3675&lt;/Id&gt;
          &lt;Age&gt;25&lt;/Age&gt;
      &lt;/Employee&gt;
    &lt;Employee type="permanent"&gt;
          &lt;Name&gt;Crow&lt;/Name&gt;
          &lt;Id&gt;3676&lt;/Id&gt;
          &lt;Age&gt;28&lt;/Age&gt;
      &lt;/Employee&gt;
  &lt;/Personnel&gt;
  </code></pre>
  
  <p>I'm trying to get the name of each node and then to take the values from there but I'm always getting null or empty string when I'm doing the following:</p>
  
  <p>child.getLocalName().equals("permanent")</p>
  
  <p>It throws exception because child.getLocalName() is null
  I checked the child in the debugger and I saw that localName = "permanent"</p>
  
  <p>Does anyone familiar with this strange behavior?</p>