4 ms·
The tool you're describing is `xmllint --format`.
by fusiongyro 9y ago
The tool you're describing is `xmllint --format`.
- chris_wot 9y agoNotepad++ also has a lot of plugins.
- radicalbyte 9y agoThis, I use the XML and JSON pretty print plugins daily.
- oever 9y agoNot quite. `xmlint --format` can introduce unwanted spaces. Consider this example. <p><i>hello</i><b>!</b></p> `xmllint --format` adds a space between the 'o' and the '!'.
- pingiun 9y agoAFAIK this is only a problem with html
- fusiongyro 9y agoIs there a way to reformat XML without introducing space?
- kccqzy 9y agoI think so. Technically you can put linebreaks and whitespace within XML tags.