summaryrefslogtreecommitdiff
path: root/other/ruby-hpricot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'other/ruby-hpricot.rb')
-rwxr-xr-xother/ruby-hpricot.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/other/ruby-hpricot.rb b/other/ruby-hpricot.rb
new file mode 100755
index 0000000..4f47b93
--- /dev/null
+++ b/other/ruby-hpricot.rb
@@ -0,0 +1,7 @@
+#!/usr/bin/ruby -w
+require 'hpricot'
+
+xml = File.read(ARGV[0])
+doc = Hpricot(xml)
+puts doc
+