<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>RE:XML tree traversing</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>> Element getFirstChild(); - returns first child element</FONT>
<BR><FONT SIZE=2>> or null</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> Element getNextSibling(); - returns next sibling element</FONT>
<BR><FONT SIZE=2>> or null</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> and possibly:</FONT>
<BR><FONT SIZE=2>> Element getPrevSibling();</FONT>
</P>
<P><FONT SIZE=2>How about getChildren().listIterator(), which has both next(), previous().</FONT>
</P>
<P><FONT SIZE=2>- Vamshi</FONT>
</P>
<BR>
</BODY>
</HTML>