29
Oct

XML pretty print on MacOSX

When you spent half of your day integrating with external systems, you’ll get into a point where reading a xml message is an extremely tiring event.

By making the xml message with the right indentation your life will become 100x easy.

Just copy the xml message into your computer memory, and then run this command.

pbpaste | xmllint --format - > pretty-xml.xml

You’ll get a pretty and nice readable xml file on your destination file “pretty-xml.xml”.

No related posts.

enjoyed this post? share with others:

twitter stumble upon digg

This entry was posted on Monday, October 29th, 2012 at 4:01 pm and is filed under Coding. You can follow any responses to this entry through the RSS 2.0 feed.

comments

1
  1. March 6th, 2013 | Allen says:

    How much do you charge per hour for programming work?

leave a comment