Link to home
Start Free TrialLog in
Avatar of BrianMc1958
BrianMc1958

asked on

Can JDOM and/or XPath find an element without starting from root?

Dear Experts,

When using JDOM and/or XPath, is it always necessary to specify the path from the root?  Can I just say "Go get the <bob>...</bob> element--no matter where it is?  Instead of "Go get 'MyRoot/ThisNode/ThatNode/bob'".

I know that's a little funky, but I have good funky reasons for wanting to do it.

Thanks!
BrianMc1958
ASKER CERTIFIED SOLUTION
Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BrianMc1958
BrianMc1958

ASKER

Hey!  It works!

Thanks a lot!