Jump to content

Collapsing all nodes of an XML document using XSL


Guest Rocky71

Recommended Posts

Guest Rocky71

HiHow can we transform an XML document into another XML document showing all the nodes as collapsed/ and with all the nodes as expandedThanks

Link to comment
Share on other sites

I'm not sure I see what you mean.By "all nodes expanded" I guess you mean a DOM snapshot, but "all nodes collapsed"... what you do you mean?Anyhow, there's a Pretty XML Tree Viewer stylesheet and it also has an ASCII version if you want plain text output.From then on, if you need to make something like the Opera development console, where you click and hide stuff, you'll need to use JavaScript to manipulate the result tree of the HTML version.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...