[jdom-interest] Re: Problem getting children
Rolf Lear
rlear at algorithmics.com
Tue Aug 26 05:42:30 PDT 2003
Use root.getChildren("a",
Namespace.getNamespace("x-schema:SomeSchema.xdr"));
rolf
-----Original Message-----
From: Kenneth Ellefsen [mailto:kellefsen at bergen.oilfield.slb.com]
Sent: Tuesday, August 26, 2003 5:31 AM
To: jdom-interest at jdom.org
Subject: [jdom-interest] Re: Problem getting children
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
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20030826/b1c5358c/attachment.htm
More information about the jdom-interest
mailing list