Parse an XML document using the Nokogiri::XML::Reader API. See Nokogiri::XML::Reader for mor information
# File lib/nokogiri/xml.rb, line 42 42: def Reader string_or_io, url = nil, encoding = nil, options = ParseOptions::STRICT 43: 44: options = Nokogiri::XML::ParseOptions.new(options) if Fixnum === options 45: # Give the options to the user 46: yield options if block_given? 47: 48: if string_or_io.respond_to? :read 49: return Reader.from_io(string_or_io, url, encoding, options.to_i) 50: end 51: Reader.from_memory(string_or_io, url, encoding, options.to_i) 52: end
Create a new Nokogiri::XML::RelaxNG document from string_or_io. See Nokogiri::XML::RelaxNG for an example.
# File lib/nokogiri/xml/relax_ng.rb, line 7 7: def RelaxNG string_or_io 8: RelaxNG.new(string_or_io) 9: end
Create a new Nokogiri::XML::Schema object using a string_or_io object.
# File lib/nokogiri/xml/schema.rb, line 7 7: def Schema string_or_io 8: Schema.new(string_or_io) 9: end
Parse a fragment from string in to a NodeSet.
# File lib/nokogiri/xml.rb, line 62 62: def fragment string 63: XML::DocumentFragment.parse(string) 64: end
Parse XML. Convenience method for Nokogiri::XML::Document.parse
# File lib/nokogiri/xml.rb, line 56 56: def parse thing, url = nil, encoding = nil, options = ParseOptions::DEFAULT_XML, &block 57: Document.parse(thing, url, encoding, options, &block) 58: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.