Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tree Structure

 
Rajesh Navduri
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ajith Kallambella
Sheriff
Posts: 5782
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Rajesh Navduri
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Mapraputa Is
Leverager of our synergies
Sheriff
Posts: 10065
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic