<div>hi,</div>
<div>i want to traverse a xml file who has 2 namespaces, but i get a NullPointerException </div>
<div>the file&nbsp;looks like following:</div>
<div>&nbsp;</div>
<div>
<p style="BACKGROUND: white; MARGIN: 0cm 0cm 0pt"><span style="COLOR: blue; FONT-FAMILY: Arial">&lt;</span><span style="COLOR: maroon; FONT-FAMILY: Arial">Envelope</span><span style="COLOR: red; FONT-FAMILY: Arial"> xmlns
</span><span style="COLOR: blue; FONT-FAMILY: Arial">=&quot;</span><span style="FONT-FAMILY: Arial"><a href="http://ns.hr-xml.org/2004-08-02">http://ns.hr-xml.org/2004-08-02</a><span style="COLOR: blue">&quot;</span><span style="COLOR: red">
 xmlns:oa</span><span style="COLOR: blue">=&quot;</span><a href="http://www.openapplications.org/oagis">http://www.openapplications.org/oagis</a><span style="COLOR: blue">&quot;</span><span style="COLOR: red"> xmlns:xsi</span>
<span style="COLOR: blue">=&quot;</span><a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a><span style="COLOR: blue">&quot;&gt;</span></span></p>
<p style="BACKGROUND: white; MARGIN: 0cm 0cm 0pt"><span style="COLOR: blue; FONT-FAMILY: Arial">&nbsp;&lt;moha&gt;</span><span style="FONT-FAMILY: Arial"></span></p>
<p style="BACKGROUND: white; MARGIN: 0cm 0cm 0pt"><span style="COLOR: blue; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;jalal aida=&quot;kouider&quot;&gt;</span><span style="FONT-FAMILY: Arial"></span></p>
<p style="BACKGROUND: white; MARGIN: 0cm 0cm 0pt"><span style="COLOR: blue; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;oa:nabil&gt;rabha&lt;/oa:nabil&gt;</span><span style="FONT-FAMILY: Arial"></span></p>
<p style="BACKGROUND: white; MARGIN: 0cm 0cm 0pt"><span style="COLOR: blue; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/jalal&gt;</span><span style="FONT-FAMILY: Arial"></span></p>
<p style="BACKGROUND: white; MARGIN: 0cm 0cm 0pt"><span style="COLOR: blue; FONT-FAMILY: Arial">&nbsp;&lt;/moha&gt;</span><span style="FONT-FAMILY: Arial"></span></p>
<p style="BACKGROUND: white; MARGIN: 0cm 0cm 0pt"><span style="COLOR: blue; FONT-FAMILY: Arial">&lt;/</span><span style="COLOR: maroon; FONT-FAMILY: Arial">Envelope&gt;</span></p>
<p style="BACKGROUND: white; MARGIN: 0cm 0cm 0pt"><span style="COLOR: maroon; FONT-FAMILY: Arial"></span>&nbsp;</p>
<p style="BACKGROUND: white; MARGIN: 0cm 0cm 0pt"><span style="COLOR: maroon; FONT-FAMILY: Arial">root.getChild(&quot;moha&quot;,root.getNameSpace).getChild(&quot;jalal&quot;,<font color="#800000">root.getNameSpace</font>
).getChild(&quot;nabil&quot;,<font color="#800000">root.getNameSpace</font>)&nbsp; return  null</span></p>
<p style="BACKGROUND: white; MARGIN: 0cm 0cm 0pt"><span style="COLOR: maroon; FONT-FAMILY: Arial"></span>&nbsp;</p>
<p style="BACKGROUND: white; MARGIN: 0cm 0cm 0pt"><span style="COLOR: maroon; FONT-FAMILY: Arial">think you a lot</span></p></div>