OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: xerces



Hi,

AFAIK there is no support for XPath in Xerces2, but there is one in Xalan
(http://xml.apache.org/xalan-j/index.html). You can also find XPath
implementations in Resin XML(http://www.caucho.com/), SAXON
(http://users.iclway.co.uk/mhkay/saxon/)...

The most common situation is that you find an XPath API where it is most
needed, i.e. in XSLT processors rather than in XML parsers. The problem is
that some of these API are difficult to use out of the context of an XSLT
stylesheet (you have to provide rather heavyweight environments). This is
annoying since a standard, lightweight XPath API would be most useful. I
found that the easiest APIs to use outside XSLT stylesheet were the one from
Resin, then the one from Xalan.

I strongly suggest that you have a look at the dom4j API
(http://www.dom4j.org/), a DOM api that natively integrates XPath support.
They have integrated SAXPath (http://www.saxpath.org/) which is an API for
XPath parsing. Using XPath expressions seem quite natural in dom4j (see
http://www.dom4j.org/guide.html#Powerful%20Navigation%20with%20XPath).

Regards,
Nicolas Lehuen
Responsable R&D / Head of R&D
UBICCO, the Multi-Access Software Vendor
http://www.ubicco.com/
mailto:nicolas.lehuen@ubicco.com
Phone : +33 1 53 24 99 79
Fax   : +33 1 53 24 17 23
Mobile: +33 6 61 90 76 40

>-----Message d'origine-----
>De : Laura Hatcher [mailto:lhatcher@argoneng.com]
>Envoye : mardi 31 juillet 2001 20:10
>A : xml-dev
>Objet : xerces
>
>
>Does anyone know if Xerces Java 2 supports XPath?  And If not can
>someone recommend a parser that does.
>
>Thanks,
>Laura Hatcher
>
>
>
>------------------------------------------------------------------
>The xml-dev list is sponsored by XML.org <http://www.xml.org>, 
>an initiative of OASIS <http://www.oasis->open.org>
>
>The list 
>archives are at 
>http://lists.xml.org/archives/xml-dev/
>
>To unsubscribe from this elist send a message with the single word
>"unsubscribe" in the body to: xml-dev-request@lists.xml.org
>