add an xml pretty-printer

This makes it a lot easier to see what's going on in a TCX file.
This commit is contained in:
Sean Rhea
2010-03-03 10:54:30 -05:00
parent 37a17f11f8
commit 19223e51b3

4
src/ppxml.rb Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env ruby
require 'rexml/document'
xml = REXML::Document.new(STDIN)
xml.write(STDOUT, 2)