commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Neumcke <pneum...@virbus.de>
Subject AW: JXPath: "parent-of-self" (descendent-of-self)
Date Thu, 31 Jul 2003 09:38:28 GMT

> > In your example, this should work: Iterator it =
> jx.iterate("ancestor::*");
> 
> Ok, in this case the iterator is empty ;)

If you're example code still is
> JXPathContext jx = JXPathContext.newContext(root);

- what exactly do you expect, trying to get ancestors from the root object?
I would be very surprised if the iterator wasn't empty :-)

Peter

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message