<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=523120222-09112005><FONT face=Arial
color=#0000ff size=2>Saxon's XPath implementation works on JDOM trees. It's not
an identical API, however.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=523120222-09112005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=523120222-09112005><FONT face=Arial
color=#0000ff size=2>Michael Kay</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=523120222-09112005><FONT face=Arial
color=#0000ff size=2>http://www.saxonica.com/</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> jdom-interest-bounces@jdom.org
[mailto:jdom-interest-bounces@jdom.org] <B>On Behalf Of </B>Kevin L
Cobb<BR><B>Sent:</B> 09 November 2005 18:13<BR><B>To:</B>
jdom-interest@jdom.org<BR><B>Subject:</B> [jdom-interest] XPATH
engine<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN class=490130818-09112005>I am trying to
tune some processing that uses JDOM to apply about 1000 XPATH expressions to a
batch of XML files. I am using Xerces as my SAX parser implementation and
thought about replacing this with something more speedy. But, the bulk of the
work is really in applying these XPATH expressions, not in actually parsing
the XML. I am caching the expressions as XPath objects and also only parsing
the source XML into a Document object once. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=490130818-09112005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=490130818-09112005>I'm wondering if
JDOM allows me to replace the XPATH implementation with other implementations
- I think that the default is JAXEN. Are there speedier XPATH implementations
available?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=490130818-09112005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=490130818-09112005>Any advice on
increasing the speed here would be well received. Thanks in
advance.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=490130818-09112005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=490130818-09112005>-Kevin</SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>