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/ACSThreeDSecureI used xmllint to pretty print the raw response: xmllint -format veres.xml –output - and the pretty printed looked like this: 1....

November 20, 2012