[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xerces

  • From: Nicolas LEHUEN <nicolas.lehuen@u...>
  • To: 'Laura Hatcher' <lhatcher@a...>, 'xml-dev' <xml-dev@l...>
  • Date: Tue, 31 Jul 2001 21:32:56 +0200

laura hatcher
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@u...
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@a...]
>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@l...
>

  • Follow-Ups:

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.