<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Dom api Vs Jdom api to evaluate xpath in Jaxen</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=504503211-14032007><FONT face=Arial
color=#0000ff size=2>I'm only guessing, but DOM has many features that are very
unfriendly to XPath processing, such as adjacent text nodes, CDATA and entity
reference nodes, and it's very inefficient at least in DOM level 2 to compare
nodes for identity or document order.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=504503211-14032007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=504503211-14032007><FONT face=Arial
color=#0000ff size=2>Michael Kay</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=504503211-14032007><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>Deepa Janamatti
(RBIN/EMT2)<BR><B>Sent:</B> 14 March 2007 10:33<BR><B>To:</B>
jdom-interest@jdom.org<BR><B>Subject:</B> [jdom-interest] Dom api Vs Jdom api
to evaluate xpath in Jaxen<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>Hello,</FONT> <BR><FONT face=Arial size=2>I have
tried evaluating the xpath queries using the JDOM xpath api and also using the
w3c DOM xpath api of Jaxen. But querying using the JDOM api was faster. Can
you please explain me why this has happened?</FONT></P>
<P><FONT face=Arial size=2>Thanks in advance.</FONT> </P>
<P><FONT face=Arial size=2>Regards,</FONT> <BR><FONT face=Arial
size=2>Deepa</FONT> </P></BLOCKQUOTE></BODY></HTML>