Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XPath starting from an Element ?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: "Zerbst, Carsten" <Carsten.Zerbst AT PROSTEP.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XPath starting from an Element ?
  • Date: Thu, 28 Jun 2007 08:13:06 -0400

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/




Archive powered by MHonArc 2.6.24.

Top of Page