Format XML on the command line
Hot.
curl http://something/xml | xmllint —format -
And to format JSON on the command line
curl http://something/json | python -mjson.tool
Hot.
curl http://something/xml | xmllint —format -
And to format JSON on the command line
curl http://something/json | python -mjson.tool
Updated Found a better way to print XML with tidy that’s included in OSX. XML:...curl...
curl http://something/xml | xmllint —format - curl http://something/json | python -mjson.tool Neat!