[jdom-interest] Problem getting children

Kenneth Ellefsen kellefsen at bergen.oilfield.slb.com
Tue Aug 26 02:28:06 PDT 2003


Hi!

I've been using jdom for quite a while, but haven't had to look into
schemas yet.

I now have the following problem.

I recive a xml file from an external source that contains a schema like
this example:

<rootnode xmlns="x-schema:SomeSchema.xdr">
<a/>
<rootnode>

I parse the file using SAXParser, and get the root element.

If I try to do:

root.getChildren("a");

I get an empty list back.

If I remove the root attribute xmlns="x-schema:SomeSchema.xdr" the same
code gets the a elements.

I'm using Jdom B8, and can't upgrade at this point in time.

Any suggestions what to do?

Thanks,
Kenneth




More information about the jdom-interest mailing list