[XOM-interest] XPath starting from an Element ?

Elliotte Harold elharo at metalab.unc.edu
Thu Jun 28 08:13:06 EDT 2007


Zerbst, Carsten wrote:
> Hello, 
> 
> is there a possibility to start an XPath query from an Element 
> and not from the Document ?
> 

Yes, just invoke query on the element you want to start from. E.g.

element.query("foo");


finds all the foo children of element.

-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/


More information about the XOM-interest mailing list