Quote:
Originally Posted by rajdeep01
I'd like to display a XML document inside a HTML page as a nicely pretty printed tree structure. I'd like to be able to expand and collapse tree branches. For example Firefox browser does this when you load a plain XML file.
|
The simplest way would be to load the XML document into an
iframe. You are relying on the user's browser to display the collapse/expand tree structure, but this has got to be better than trying to build these yourself. (The user could always copy the XML to an XML-viewer.)
Added: Of course, the XML has to come from the same domain.
Apparently there is an issue with
Chrome displaying XML in an iframe.