You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by Paul Levin <pl...@bii.com> on 2000/02/15 20:16:09 UTC

xpath & Xerces

Using Xerces and Xalan;
    given a Document (i.e. DocumentImpl) and given a String containing
an XPath expression, I would like to apply the expression against the
document to obtain the NodeList that matchs the expression.  Is this
possible ?

Re: xpath & Xerces

Posted by Lars Martin <la...@softwarebuero.de>.
Hi,

Tue, 15 Feb 2000 Paul Levin wrote:
>>Using Xerces and Xalan;
>    given a Document (i.e. DocumentImpl) and given a String containing
>an XPath expression, I would like to apply the expression against the
>document to obtain the NodeList that matchs the expression.  Is this
>possible ?
>

Yes it is. We, at the ozone Database Project (www.ozone-db.org), are
using Xalans XPath implementation to query one or more Documents. You
will get a result of type XObject which encapsulates the possible
return value b/c it is possible to query strings or numbers as well as
Nodes in a NodeList.

Regards,
Lars
--
________________________________________________________________
Lars Martin                         mailto:lars@softwarebuero.de
softwarebuero m&b (SMB)              http://www.softwarebuero.de