[jdom-interest] xpath [constructing path as you walk the tree ]

Philip Nelson panmanphil at yahoo.com
Thu May 30 10:09:14 PDT 2002


> Given on document, building the XPath requires both walking the document tree
> 
> up to the root and the sibling list.
> If you code this, Gu, it would make a good helper class to add to
> jdom-contrib!

I wrote one of these for the Advanced JDOM chapter in Brett's "Java and XML
2nd. edition".  The xpath was always positional because the example had to fit
in the book, but you could have allowed some sort of xpath style selection
pretty easily.  Alex Chaffee thought he was going to add this to his xpath
expression evaluator but I don't know if he ever got around to it.

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



More information about the jdom-interest mailing list