Skip to content

Instantly share code, notes, and snippets.

@abhiyerra
Created May 29, 2009 08:05
Show Gist options
  • Save abhiyerra/119845 to your computer and use it in GitHub Desktop.
Save abhiyerra/119845 to your computer and use it in GitHub Desktop.
Pretty print an xml document
#!/usr/bin/env ruby
require 'rexml/document'
REXML::Document.new(open(ARGV[0]).read).write($stdout, 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment