Display XML

  • Thread starter Thread starter Steve Lutz
  • Start date Start date
S

Steve Lutz

I would like to display XML on my website, I want it to look/behave like an
XML document looks when loaded into IE directly. I was hoping that I could
find an XSL document somewhere on my computer that is the same one IE uses
when displaying XML, but it doesn't look like there is one :-(

I cannot just dump the XML to the browser, because there are other elements
on the page.

Does anyone know of an easy way to display XML data in a browser, with nice
indentations between nodes, and maybe even the +/- controls that IE uses
when displaying XML?


Thanks in Advance

Steve
 
just open the XML file then in the browser. I forget the code to do it but
its pretty plain
 
Steve said:
I would like to display XML on my website, I want it to look/behave
like an XML document looks when loaded into IE directly. I was
hoping that I could find an XSL document somewhere on my computer
that is the same one IE uses when displaying XML, but it doesn't look
like there is one :-(

I cannot just dump the XML to the browser, because there are other
elements on the page.

Does anyone know of an easy way to display XML data in a browser,
with nice indentations between nodes, and maybe even the +/- controls
that IE uses when displaying XML?


Thanks in Advance

Steve

You could put an iframe on the page, with the src pointing to the xml file.

Hans Kesting
 
Mike said:
just open the XML file then in the browser. I forget the code to do
it but its pretty plain

But what if you want to display that xml within a nice page? The automatic
formatting only works if the entire document is one xml, not if it is part
of a regular page.

Hans Kesting
 
if you want the XML to look "prett" then use XSLT, but this he said he
wanted it to look/behave like an
XML document looks when loaded into IE directly
 
Mike and Hans

The page has other HTML elements in it, in addition to the XML. That is why
I cannot just dump the XML to the browser as an XML file. Plus, firefox for
example does not display the XML as nicely as IE does. I don't want to write
up an entire XSL for this, I was hoping someone knew the XSL files that IE
uses.
Since the XML I'm outputting is debugging information, I didn't want to put
a lot of time into it either, but the QA folks would sure appreciate the IE
style raw XML display/interaction instead of trying to look through a string
of unformatted XML.
 
Back
Top