I think that JDOM has the ability, if I set it up right, to produce a long text string with crlf's in the right places and the appropriate number of spaces to do: <doc> <element>hi</element> </doc>
I am hoping that there is an easy as pie way, versus having to use ECS to parse through me JDOM object (which incidentally is what the XML is living in!) and figure out how many td to put in or spaces... I may end up just stripping the < and > characters and using some <PRE> tags, but not the best way... It does seem that there should be somesort of method in Turbine's servlet, or in the Servlet API that would do the conversion for me, but I haven't found it yet successfully. Lastly, I looked around thinking there should be an applet out there that would give me a nice XMLSpy type interface that I could embed so you could browse the XML tree. No luck so far. Sorry about this posting starting to get off topic, but if I do find a way, I will post it back to the list. Eric -----Original Message----- From: Weaver, Scott [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 10:57 AM To: 'Turbine Users List' Subject: RE: How to output XML as HTML nicely.. Just off the top of my head, try using JDom along with ECS. Scott -----Original Message----- From: Pugh, Eric [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 4:57 PM To: 'Turbine Users List' Subject: How to output XML as HTML nicely.. Hi all, I have a .vm file that I want to output some XML on the page in a table of other data. Obviously, if I output my raw XML, it doesn't show up, because of the < and > tags... What have people done to output XML nicely? I would love it if I could take my very compact machine readable XML with no returns or spaces, and convert it to nice pretty XML with returns and indentations... Slapping the XML in a textarea is a plain, ugly, but workable method, I am looking for something better! Eric -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
