"tidy" works pretty well for most XML. It sometimes gets confused with
entity declarations but most everything else seems to work ok.
http://tidy.sourceforge.net
-----Original Message-----
From: Mike Castle [mailto:dalgoda@ix.netcom.com]
Sent: Monday, October 20, 2003 1:43 PM
To: ant-user@jakarta.apache.org
Subject: Re: Indent-Task
In article <3F905128.608@yahoo.de>, J.Pietschmann <user@ant.apache.org>
wrote:
>Mike Castle wrote:
>Use the XSLT task with a copy style sheet and indent="yes".
>Not guaranteed to work though, because indenting XML while
>preserving semantics can be very tricky (no universal rules
>where whitespace matters).
Ahh, good point. Fortunately, the .xml files I'm interested in are pretty
white space resilient. Only issues are comment formatting.
Cheers,
mrc
--
Mike Castle dalgoda@ix.netcom.com www.netcom.com/~dalgoda/
We are all of us living in the shadow of Manhattan. -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); --
gcc
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
|