<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I have an xml doc eg:<BR>- <report><BR>-
<sub_report><BR> <date required="Yes">Friday, January 11,
2002(0830)</date> <BR> <heading>Report BLAH</heading>
<BR>- <sub_heading><BR>
<sub_heading_name>Customer</sub_heading_name> <BR>
</sub_heading><BR>- <sub_heading><BR>
<sub_heading_name>Number</sub_heading_name> <BR>
</sub_heading><BR>- <sub_heading><BR>
<sub_heading_name>Counterparty</sub_heading_name> <BR>
</sub_heading><BR>- <data_row><BR>
<data>BLAH</data> <BR> <data>100</data> <BR>
<data>AAA Ltd.</data> <BR> </data_row><BR>-
<data_row><BR>...<BR>
</data_row><BR></sub_report><BR><sub_report><BR>...<BR></sub_report><BR>...<BR></report></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>So each report has a sub_report. The problem I am
getting is that when I use Jdom to extract the data from the xml doc, it looks
at the first sub_report it meets and proceeds to parse though it. Once finished
it comes out, sees "sub_report" again and parses the same sub_report it just
came from again, and not going on to the next one!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I realise I could make matters easier by labeling
the sub_report like such, sub_report1, sub_report2, sub_report3... but for other
reasons (XSLT hic-cups) I would rather keep it the way it is.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>If anyone has used Jdom extensively and perhaps has
an answer to making it skip over roots it has done before with the same name
then please let me know.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Patrick</FONT></DIV></BODY></HTML>