Is there any CLI tool for Linux which formats XML files keeping any empty lines and comments? I have tried xmllintxmllint, tidytidy and xmlstarletxmlstarlet, but all seem to focus completely cleaning XML files rather than just indentation and spacing.
StackzOfZtuff
- 3.3k
- 1
- 31
- 31