module Nokogiri::XML

def Reader string_or_io, url = nil, encoding = nil, options = ParseOptions::STRICT

Nokogiri::XML::Reader for mor information
Parse an XML document using the Nokogiri::XML::Reader API. See
##
def Reader string_or_io, url = nil, encoding = nil, options = ParseOptions::STRICT
  options = Nokogiri::XML::ParseOptions.new(options) if Integer === options
  # Give the options to the user
  yield options if block_given?
  if string_or_io.respond_to? :read
    return Reader.from_io(string_or_io, url, encoding, options.to_i)
  end
  Reader.from_memory(string_or_io, url, encoding, options.to_i)
end