[fpc-pascal] XML Pretty Formatter

Graeme Geldenhuys graemeg.lists at gmail.com
Thu May 14 17:05:40 CEST 2009


On Thu, May 14, 2009 at 1:57 PM, Leonardo M. Ramé <martinrame at yahoo.com> wrote:
>
> Hi, I'm looking for a simple XML pretty formatter, or parser who can remove
> all superfluous characters from XML files.

I have created just the thing for you. :-)
I created to XSL files that cleans up XML files. I used it for the
FPDoc xml which when created by makeskel is really ugly. ;-)

usage is as follows:

   $ xsltproc -o new.xml pretty_print.xsl ugly.xml

Hope that's useful.


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pretty_print.xsl
Type: text/xml
Size: 865 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20090514/3194649d/attachment.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove_whitespace.xsl
Type: text/xml
Size: 418 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20090514/3194649d/attachment-0001.xml>


More information about the fpc-pascal mailing list