An oneliner to format XML in pretty print with RubyFebruary 20, 2013ruby -e 'require "rexml/document";d=REXML::Document.new($stdin.read);d.write(s="",2);puts s'