Tidy[1], as well as jtidy[2], have an xml pretty print option.

Just type 'tidy -xml file', and you're all set.

The other option is passing the xml through a stylesheet that does it.

Scott

[1] http://www.w3.org/People/Raggett/tidy/
[2] http://sourceforge.net/projects/jtidy

> -----Original Message-----
> From: Rodent of Unusual Size [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, February 14, 2003 9:14 AM
> To: [EMAIL PROTECTED]
> Subject: prettyprinters for xml?
> 
> 
> do there exist any prettyprinter packages for xml, preferably 
> along the lines of the 'indent' tool for c?
> 
> odd question perhaps, but everyone i've asked about this has 
> mentioned stylesheets -- and all i've found have to do with 
> using them to transform xml into something else, rather than 
> reformatting it.
> -- 
> #ken  P-)}
> 
> Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
> Author, developer, opinionist      http://Apache-Server.Com/
> 
> "Millennium hand and shrimp!"
> 
> 
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     [EMAIL PROTECTED]
> To unsubscribe, e-mail:          [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to