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


blog comments powered by Disqus

Notes

  1. divineteam reblogged this from scribblepadofdoom
  2. jasonseney reblogged this from codeshal
  3. klaatu reblogged this from david
  4. scribblepadofdoom reblogged this from david and added:
    Updated Found a better way to print XML with tidy that’s included in OSX. XML:...curl...
  5. webvampires reblogged this from david
  6. david reblogged this from kortina and added:
    curl http://something/xml | xmllint —format - curl http://something/json | python -mjson.tool Neat!
  7. j2d2 reblogged this from kortina
  8. kortina reblogged this from codeshal
  9. codeshal posted this