Pretty Printing XML with xmllint

Yesterday I was doing some tests towards Visa 3-D Secure test directory url, which responds in XML format. curl -s -X POST -d @vereq.xml –cert visa.crt –key visa.key https://dropit.3dsecure.net:8443/PIT/DS The raw response looked like this: 1.0.2YA0fTY+pKUTs3A4AjhdYQ+g==https://dropit.3dsecure.net:9443/PIT/ACS ThreeDSecure I used xmllint to pretty print the raw response: xmllint -format veres.xml –output - and the pretty printed looked like this: 1.0.2 Y A0fTY+pKUTv+96d4nonZQA== https://dropit.3dsecure.net:9443/PIT/ACS ThreeDSecure
One minute to read