opaxmlindent (8) - Linux Manuals



(Linux) Takes well-formed XML as input, filters out comments, and generates a uniformly-indented equivalent XML file. Use opaxmlindent to reformat files for easier reading and review, also to reformat a file for easy comparison with diff.


opaxmlindent [-t|-k] [-i indent] [ input_file]


Trims leading and trailing whitespace in tag contents.

In tags with purely whitespace that contain newlines, keep newlines as-is. Default is to format as an empty list.

-i indent
Sets indentation to use per level. Default is 4.

XML file to read. Default is stdin.