xsl-list
[Top] [All Lists]

Re: XPathEvaluator in SAXON?

2003-03-03 14:51:13
Thank you for you response.
I was reading the API/Sample app for XPathEvaluator in Saxon 7.4 and I found the evaluate() method will return a List of NodeInfo. If I want to find out the node(s) using the xpath and then be able to upload the value in the .xml document, can I do that through NodeInfo? If not, is there a way that I can construct a DOM Node object based on the NodeInfo?

Thanks again for your time.
LS

Michael Kay wrote:

In Saxon 7.4, look for the class net.sf.saxon.xpath.XPathEvaluator -
there's an overview in the file api-guide.html and of course full
JavaDoc documentation.

In Saxon 6.5.2, the API is less well defined, though it's still possible
to achieve the result. The sample application ShowBooks.java will point
you to some of the interfaces you need to use.

Michael Kay

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com [mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of Liu Shuai
Sent: 26 February 2003 23:58
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] XPathEvaluator in SAXON?



Hi all,

In Saxon, is there a easy way to query a xml file against a xpath and receive the result as a node-set/list of nodes, like the XPathEvaluator class in Xalan?

Thank you for your attention.

LS


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list





XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>