Hi, Can anyone tell me how to get a tree structure in xml ?? I found one topic regarding xmltreediff in IBM alpha works. Will it be helpful in getting the tree structure ?? How about getting this tree structure using DHTML Pl advise. Cheers Rajesh
I don't quite understand your problem. You will be able to get the document as a tree by using a DOM parser. The tree will be constructed in memory and you can use the DOM API to traverse the tree. Is this what you need? :roll:
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Joined: Jun 28, 2001
Hi Ajith, In our project we need to create tree structure display the product details. -----Product--- ----Date--- ----Place--- ----Details--- Like this we have show the details for each product. Now the question is which will give a better view either DHTML or XML ?? In case of XML, how we can build this Tree like structure ?? Is there any built-in or any sample code to meet the requirement. While I was looking for this info, I came across about IBMs xmltreediff. Is this useful for my present requirement ?? We are using Oracle9iAS as our application server and jsp. Pl suggest. Cheers Rajesh [ March 25, 2002: Message edited by: Rajesh Navduri ]
Rajesh, still what exactly do you want to do with your tree structure? "Tree structure" is an abstraction. Do you need to show it? What is your representation agent? If it is a browser, then you need to show it as HTML. Here you can find two XSL stylesheets for XML tree visualization. http://skew.org/xml/ If you need to incorporate tree visualization in your Java™ program, check this link: http://www.fawcette.com/javapro/2002_03/magazine/features/jodonahue/