[jdom-interest] direct access to an arbitrary element----can I do this??

MarkW markw at wilsoncom.de
Fri May 3 09:27:56 PDT 2002


Hi,
Take a look at www.jaxen.org
Greetings,
Mark

> -----Original Message-----
> From: jdom-interest-admin at jdom.org 
> [mailto:jdom-interest-admin at jdom.org] On Behalf Of Ladhani, Dilip
> Sent: Friday, May 03, 2002 5:50 PM
> To: jdom-interest at jdom.org
> Subject: [jdom-interest] direct access to an arbitrary 
> element----can I do this??
> 
> 
> Hey guys,
>  
> I have a simple operation to do. I am not sure how I can do 
> this using Jdom. I have an XML that I get from on of our 
> vendors. It kinda looks like this
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <abc>
>      <def>
>            <ghi>
>                <jkl>
>                       <mno>
>                                 <pqr>1111</pqr> 
>                                 <rst>2222</rst> 
>                                 <uvw>3333</uvw>               
>                         
>                        </mno> 
>                </jkl>
>            </ghi>
>      </def>
> </abc>
>  
> Can I directly read the data in the tags pqr, rst, uvw etc or 
> do I have to keep doing getchild() until I reach the tag mno 
> to do anything meaningful. In short how can I access a tag 
> somewhere in the xml tree by tag name.
>  
>  
> Thanks, Your help is appreciated.
>  
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com




More information about the jdom-interest mailing list