Skip to content

Instantly share code, notes, and snippets.

@cxx
Created April 18, 2010 11:59
Show Gist options
  • Save cxx/370192 to your computer and use it in GitHub Desktop.
Save cxx/370192 to your computer and use it in GitHub Desktop.
pretty print a xml
require 'rexml/document'
REXML::Document.new($stdin).write($stdout, 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment