Skip to content

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”.

Published inCoding

2 Comments

  1. Allen Allen

    How much do you charge per hour for programming work?

Leave a Reply to php training kolkata Cancel reply

Your email address will not be published. Required fields are marked *