[jdom-interest] append to xml

mohammed lethrech mohammed.lethrech at gmail.com
Fri May 4 02:29:07 PDT 2007


hi,
i want to traverse a xml file who has 2 namespaces, but i get a
NullPointerException
the file looks like following:


<Envelope xmlns="http://ns.hr-xml.org/2004-08-02" xmlns:oa="
http://www.openapplications.org/oagis" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">

 <moha>

        <jalal aida="kouider">

                 <oa:nabil>rabha</oa:nabil>

        </jalal>

 </moha>

</Envelope>



root.getChild("moha",root.getNameSpace).getChild("jalal",root.getNameSpace
).getChild("nabil",root.getNameSpace)  return à null



think you a lot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20070504/2062aa91/attachment.htm


More information about the jdom-interest mailing list