Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOM to HTML 1

Status
Not open for further replies.

advait75

Programmer
Oct 5, 2002
48
IN
Hi,
I have a DOm filled with data from a Resultset. How do I output this as a treem menu in HTML?
 
advait75 :

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.

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top