Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
XPathAPI, or precompiled XPaths
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="David Portabella, post: 2987011"] I have tried the following: execute this once: XPathContext xpathSupport = new XPathContext(); PrefixResolverDefault prefixResolver = new PrefixResolverDefault(document); XPath xpath = new XPath(xpathStr, null, prefixResolver, XPath.SELECT, null); and then, for each node: int ctxtNode = xpathSupport.getDTMHandleFromNode(contextNode); XObject object = xpath.execute(xpathSupport, node, prefixResolver); but it still very slow (the execution time did not change much). It goes fast with the first nodes, but after 200 nodes it starts to go really slow (1 second per node) What can be the problem? How can I speed up this? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
XPathAPI, or precompiled XPaths
Top