How to easily re-format an XML document to use tabs

September 3, 2011

For anyone else who might be interested, since it took a while for me to find a good way to do it.

XMLLINT_INDENT=$'\t' xmllint --format ./input.xml > ./output.xml

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.