This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How can I reindent an XML-file for readability?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] How can I reindent an XML-file for readability?
- From: "Thomas B. Passin" <tpassin at mitretek dot org>
- Date: Wed, 9 May 2001 10:15:54 -0400
- References: <D1F94D8C7C1FD111A5290020AF92B1B3E4CAEF@INTRASERVER>
- Reply-To: xsl-list at lists dot mulberrytech dot com
[Rene de Vries]
> I think that there must be a simple XSL to reindent an XML for
readability, but I can't
> invent it and can't find a solution on the net.
Use HTMLTidy. When set for xml input and output, it will do a nice job of
pretty-printing. You would post-process your transform with Tidy.
Tidy is available on the W3C web site, www.w3c.org. It is used in several
very good editing applications, including HTML-kit and XML Cooktop. With
these, you can run it in an editing environment instead of from a command
line if that's easier for you.
Cheers,
Tom P
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list