cat INPUTFILE | xml-pretty
xml-pretty reads XML from an input file or STDIN, formats it using XML::LibXML::PrettyPrint using its default settings, and prints it to STDOUT.
Please report any bugs to <http://rt.cpan.org/Dist/Display.html?Queue=XML-LibXML-PrettyPrint>.
Toby Inkster <firstname.lastname@example.org>.
Copyright and Licence
This software is copyright (c) 2014 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Disclaimer of Warranties
THIS PACKAGE IS PROVIDED “AS IS” AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.