From the example I gave you in your other thread, you will need to adjust the DOMSerializer class to not output the exact XML, but to output HTML - you will need to work out rules for identifying what hierachy level you are on, to adjust the depth of tree you wish to display. Just fiddle with the code, and do a bit of trial and error.
OR : if you are really adventurous, you could use XSLT to transform your XML into HTML ... google for "Java XSLT" - this actually might be a neater alternative.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.