aspose file tools
The moose likes XML and Related Technologies and the fly likes JTree to XML? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "JTree to XML?" Watch "JTree to XML?" New topic
Author

JTree to XML?

C Kutler
Ranch Hand

Joined: Apr 15, 2004
Posts: 62
Hello,

I have a JTree with a simple hierarchy, like an index. I want to convert the data in the JTree into an XML document. I can find how to get XML into a JTree but not the other way around.

Any suggestions?


We learn by doing, there is no other way.
clio katz
Ranch Hand

Joined: Apr 30, 2004
Posts: 101
you can serialize the doc. check out e. r. harold's Output from DOM Chapter in his "Processing XML with Java
" book

note: far-and-away one of the best technical books i've ever read - and he made the entire text available online! he's a real hero ...
C Kutler
Ranch Hand

Joined: Apr 15, 2004
Posts: 62
Clio

Thanks for the answer and the pointer to what appears to be a very useful book.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JTree to XML?
 
Similar Threads
JTree
JTree and XML
dynamic JTree
building a JTree
XML and JTree