[jdom-interest] getChildText() question

bob mcwhirter bob at werken.com
Sun Jan 20 11:24:32 PST 2002


Use XPath.

http://jaxen.org/

	-bob

On Sun, 20 Jan 2002, Mike Hogarth wrote:

> 
> I am finding a node's text by using the following command
> System.out.println(root.getChild("PubmedArticle").getChild("
> MedlineCitation").getChild("Article").getChild("Abstract").g
> etChild("AbstractText").getText());
> 
> Is there a simpler way other than navigating each node down
> the chain?  For examle, is there a quick way to find the
> first element named "AbstractText", then get its text?
> 
> 
> --Mike H
> 
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
> 




More information about the jdom-interest mailing list