xb – XML beautifier|
xb [ dM ][ file ]|
Xb performs a DOM model, non–validating parse of the given XML
file (or standard input if none specified). This is then written
to standard output reformatted into an indented, one–line–per–element
– Re–formatting the will change the meaning of PCdata in the XML file if leading and trailing whitespace is significant.
– All comments are stripped, though the DOCTYPE structured comment is preserved. A new XML version comment is always generated on the output.
– Attributes are always quoted with single quotes whether the source uses single or double quotes.
– Empty long form elements are replaced with their short form; for example: