You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Psi Aushilfe3 <Au...@prosieben.de> on 2003/08/04 14:35:24 UTC
.//
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).
Re: .//
Posted by Dmitri Plotnikov <dp...@yahoo.com>.
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 <Au...@prosieben.de> 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
http://sitebuilder.yahoo.com