Created
May 29, 2009 08:05
-
-
Save abhiyerra/119845 to your computer and use it in GitHub Desktop.
Pretty print an xml document
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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