Thank u Ian,<br>                    But I dont want the output in xml format. I just want the tree structure. Canu suggest me any example for this. thanks in advance :D<br><br><div class="gmail_quote">On Fri, Aug 7, 2009 at 12:11 PM, Ian Lea <span dir="ltr">&lt;<a href="mailto:ian.lea@gmail.com">ian.lea@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">&gt; 1) How to print out the tree like structure?<br>
<br>
</div>XMLOutputter.<br>
<div class="im"><br>
&gt; 2) Any link that would help me ( coz tried <a href="http://jdom.org" target="_blank">jdom.org</a> but didnt get clear idea<br>
&gt; abt this :o )<br>
<br>
</div>Have you read any of the tutorials that Google shows for the search<br>
that Michael suggested?  Some of them must mention printing out a JDOM<br>
tree.  A search for &quot;jdom print&quot; gives XMLOutputter followed by<br>
<a href="http://javaneze.wordpress.com/2006/06/09/a-simple-example-using-jdom/" target="_blank">http://javaneze.wordpress.com/2006/06/09/a-simple-example-using-jdom/</a><br>
which might be just what you need.<br>
<br>
Good luck.  There is loads of info out there and it&#39;s not hard to find.<br>
<br>
<br>
--<br>
<font color="#888888">Ian.<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>$  VISHU  $<br>