You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Bernard Jorion <b_...@hotmail.com> on 2002/01/07 15:47:27 UTC
XPathAPI
Hello to all,
I am new to this list, and I would like the following information:
I have a java file I would like to optimize. The file uses many XPathAPI
functions to locate nodes in a Document.
The apidocs says about org.apache.xpath.XPathAPI:
"The methods in this class are convenience methods into the low-level XPath
API. These functions tend to be a little slow, since a number of objects
must be created for each evaluation. A faster way is to precompile the
XPaths using the low-level API, and then just use the XPaths over and over."
What do they mean exactly by "low-level API" ? How can I precompile the
XPaths ?
Moreover, I would be interested by any tips allowing a faster processing
(eg. I know that a XPath "//" should be avoided as it scans the whole
document).
Thanks for your help,
Bernard.
_________________________________________________________________
Téléchargez MSN Explorer gratuitement à l'adresse
http://explorer.msn.fr/intl.asp.