Object
Creates a new parser by parsing the specified file or uri.
# File lib/libxml/sax_parser.rb, line 10 10: def self.file(path) 11: context = XML::Parser::Context.file(path) 12: self.new(context) 13: end
Creates a new reader by parsing the specified io object.
Parameters:
encoding - The document encoding, defaults to nil. Valid values are the encoding constants defined on XML::Encoding.
# File lib/libxml/sax_parser.rb, line 25 25: def self.io(io, options = {}) 26: context = XML::Parser::Context.io(io) 27: context.encoding = options[:encoding] if options[:encoding] 28: self.new(context) 29: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.