<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>XPATH</TITLE>
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=546175212-22012002><FONT face=Arial color=#0000ff size=2>i
overide getDocument() and setDocument(doc) methods in the element so that
the element behaves like </FONT></SPAN></DIV>
<DIV><SPAN class=546175212-22012002></SPAN><SPAN class=546175212-22012002><FONT
face=Arial color=#0000ff size=2>a root node. So you can use xpath relatively
from the element directly using jaxen .</FONT></SPAN></DIV>
<DIV><SPAN class=546175212-22012002><FONT face=Arial color=#0000ff size=2>i dont
know if this affects anything else. but works fine for me</FONT></SPAN></DIV>
<DIV><SPAN class=546175212-22012002><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=546175212-22012002><FONT face=Arial color=#0000ff
size=2>mani</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> adam flinton
[mailto:aflinton@armature.com]<BR><B>Sent:</B> Tuesday, January 22, 2002 5:50
PM<BR><B>To:</B> JDOM Mailing List (E-mail)<BR><B>Subject:</B> [jdom-interest]
XPATH<BR><BR></FONT></DIV>
<P><FONT size=2>Dear All,</FONT> </P>
<P><FONT size=2>I have been looking to use XPath within JDOM to stop code
bloat (i.e. instead of calling getchild repeatedly). I have noted the werken,
Jaxen & SaxPath code. </FONT></P>
<P><FONT size=2>A) werken seems to be deprecated in favour of the other
2.</FONT> <BR><FONT size=2>B) I note from the JDOM home page that 1.1 is oging
to be doing XPath.</FONT> </P>
<P><FONT size=2>What do people here recomend (a) between the 2 existing
non-deprecated code bases & (b) relative to "native JDOM" stuff if one was
looking to put some XPATH stuff into a piece of code which at the moment uses
JDOM exclusively for XML manipulation/interaction.</FONT></P>
<P><FONT size=2>Wait? Go with Jaxen?</FONT> </P>
<P><FONT size=2>It isn't a killer but it's tedious to know exactly where in
the tree I want to be & thus to have to call getRoot followed by many
getChild statements (or one long one).</FONT></P><BR>
<P><FONT size=2>--</FONT> </P>
<P><FONT size=2>Adam Flinton</FONT> <BR><FONT size=2>Armature Ltd.</FONT>
<BR><FONT size=2>Mobile: 0780 3180830</FONT> <BR><FONT size=2>EMail:
aflinton@armature.com </FONT></P></BLOCKQUOTE></BODY></HTML>