[jdom-interest] Re: Problem getting children

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


missing slash in the end rootnode tag. It's just an example.
On Tue, 2003-08-26 at 11:28, Kenneth Ellefsen wrote:
> 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
-- 
Mvh,

Kenneth Ellefsen                   | Tlf: (+47) 55985829
Schlumberger Information Solutions | www.sis.slb.com





More information about the jdom-interest mailing list