Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

RE: [jdom-interest] Dom api Vs Jdom api to evaluate xpath in Jaxen

Michael Kay

2007-03-14

Replies:

Dom api Vs Jdom api to evaluate xpath in Jaxen
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.
 
Michael Kay
http://www.saxonica.com/


From: jdom-interest-bounces@jdom.org [mailto:jdom-interest-bounces@jdom.org] On Behalf Of Deepa Janamatti (RBIN/EMT2)
Sent: 14 March 2007 10:33
To: jdom-interest@jdom.org
Subject: [jdom-interest] Dom api Vs Jdom api to evaluate xpath in Jaxen

Hello,
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?

Thanks in advance.

Regards,
Deepa

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.