wood burning stoves
The moose likes XML and Related Technologies and the fly likes Tree Structure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Tree Structure " Watch "Tree Structure " New topic

Tree Structure

Rajesh Navduri
Ranch Hand

Joined: Jun 28, 2001
Posts: 31
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.
Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
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).
Rajesh Navduri
Ranch Hand

Joined: Jun 28, 2001
Posts: 31
Hi Ajith,
In our project we need to create tree structure display the product 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.
[ March 25, 2002: Message edited by: Rajesh Navduri ]
Mapraputa Is
Leverager of our synergies

Joined: Aug 26, 2000
Posts: 10065
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/
I agree. Here's the link: http://aspose.com/file-tools
subject: Tree Structure
It's not a secret anymore!