Menu

#5 Provide for ability to display/log a formatted XML document

open
5
2006-05-12
2006-05-12
No

Currently when you want to view an XML document that is
either retrieved from the server or submitted to the
server, you can view it using a combination of the
Javascript alert command and usage of the
AbstractBrowser's getXMLDocumentAsString() function.
You can also log the XML document.

However, neither choice provides an optimal solution.
Often, the XML document is large and viewing it in an
alert box is not practical. None of the browser's
format the resulting XML string very well and what you
can see is difficult to read. If you log the XML using
the xWire Logger, it renders the content using the
document.write() function. The browsers display this
differently. Both strip out the XML tags. IE allows
you to see the true XML content by viewing source.
However, Firefox does not.

What you really want is the capability to get the XML
content so that you can copy it to another location for
viewing.

Some suggestions for solutions are to:
A) Encode the XML tags so that they render properly
B) Log the XML into a read-only HTML text area
C) Somehow open the document in a separate window
allowing the browser to display it
D) Implement an "Echo" capability where the client can
submit an XML document to the server, have the server
parse and format it and return it to the browser in
another window

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.