Bookmark and Share

Indenting a well-formed XML file

Assume the XML file file.xml is well-formed but not indented, it can be indented using tidy

tidy -xml -i file.xml > indentedFile.xml
blog comments powered by Disqus