Display XML

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
 
G

Guest

just open the XML file then in the browser. I forget the code to do it but
its pretty plain
 
H

Hans Kesting

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
 
H

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
 
G

Guest

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
 
S

Steve Lutz

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

XML display 1
Return XML in function 1
viewing xml 2
asp.net dropdown using xsl output 8
XML DTDs Versus XML Schema 0
xml document 3
XML display IE 3
Display XML file 3

Top