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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tree to XML

Status
Not open for further replies.

rhymejerky

Programmer
Nov 30, 2004
23
US
I have a tree structure that represents the network topology and would like to display this tree on a browser. One thing that came to my mind is XML. I can expand and collapse the topology in a browser. Is this a good way to go? If it is, what cpan module is available for going from Tree data to XML. I saw a lot of XML parser on cpan.org, but not the other way around. If this is not a good way to go, is there an appl (open source, of course :) ) available that does this?

Thanks a lot!!
 
You could have a look at XML::Simple. It reads XML into, and writes XML from, a tree of hashes and arrays. It's easy to use but lightweight, not preserving element ordering or whitespace.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top