lib/nokogiri/xml/sax/document.rb in nokogiri-maglev--1.5.2 vs lib/nokogiri/xml/sax/document.rb in nokogiri-maglev--1.5.3
- old
+ new
@@ -31,10 +31,10 @@
#
# # Create a new parser
# parser = Nokogiri::XML::SAX::Parser.new(MyDocument.new)
#
# # Feed the parser some XML
- # parser.parse(File.read(ARGV[0], 'rb'))
+ # parser.parse(File.open(ARGV[0]))
#
# Now my document handler will be called when each node starts, and when
# then document ends. To see what kinds of events are available, take
# a look at Nokogiri::XML::SAX::Document.
#