commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitri Plotnikov <>
Subject Re: .//
Date Mon, 04 Aug 2003 13:59:46 GMT
JXPath cannot, by design, step upward from the root.  The rationale is
that you cannot really do that in any meaningful fashion when you are
working with Java Beans graphs. So, for consistency, it does not do
that for XML structures either.

However, if you create a JXPathContext passing the document root as the
argument and then take a relative context from it, you will be able to
step up to the real document root.

I hope this helps,

- Dmitri

--- Psi Aushilfe3 <> wrote:
> Hi!
> Are there known problems with .// xpaths? My JXPathContext is not
> root
> but a quite deep node and there are only a few further descendants
> but
> it hogs my CPU and seems to never actually finish the task (I didn't
> wait so long).

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

View raw message