"jmm-list-gn" <jm***************@sohnen-moe.com> wrote in message
news:Fr********************@giganews.com...
Hello,
Most XML examples have the content neatly laid out with newlines and
indenting. A DOM parser, however, does not bother with such niceties when
creating an XML file.
Is there a "pretty printer" function somewhere that makes XML easier to
read by adding the indenting?
--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Not sure how you are reading the XML.
Most browsers will render XML all pretty like you want. The XML itself
doesn't care about the formatting so it's really up to the viewer you use. A
simple text editor will not do what you want as I'm sure you've found.
Here's a similar discussion
http://tinyurl.com/68zkg
OTOH you could use XSLT to transform your XML to the format you want....