# HG changeset patch # User Oleksandr Gavenko # Date 1269383841 -7200 # Node ID 5a5b41d76f037c8eb7ae70dc5896b04e9d0efc54 # Parent 9592e984ea6da3dc420ea466d6473d61d5eb5533 About prettyprint xml. diff -r 9592e984ea6d -r 5a5b41d76f03 prettyprint.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/prettyprint.rst Wed Mar 24 00:37:21 2010 +0200 @@ -0,0 +1,27 @@ +-*- mode: outline; coding: utf-8 -*- + +* xml. + +** tidy. + + $ tidy -xml -i -utf8 -o out.xml in.xml + +or in Emacs C-x h C-x c utf-8 C-u M-| tidy -q -xml -i -utf8 - + + http://tidy.sourceforge.net + home page + http://www.emacswiki.org/cgi-bin/wiki/tidy.el + +** xmllint. + + $ xmllint --format file.xml + +or in Emacs: C-x h C-u M-| xmllint --format - + +** Emacs and nxml. + +You need introduce line-breaks and then C-x h C-M-\. + +** xmlindent. + + http://xmlindent.sourceforge.net/ \ No newline at end of file