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
  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

def RelaxNG(string_or_io, options = ParseOptions::DEFAULT_SCHEMA)

See Nokogiri::XML::RelaxNG for an example.
Create a new Nokogiri::XML::RelaxNG document from +string_or_io+.
##
def RelaxNG(string_or_io, options = ParseOptions::DEFAULT_SCHEMA)
  RelaxNG.new(string_or_io, options)
end

def Schema(string_or_io, options = ParseOptions::DEFAULT_SCHEMA)

object.
Create a new Nokogiri::XML::Schema object using a +string_or_io+
##
def Schema(string_or_io, options = ParseOptions::DEFAULT_SCHEMA)
  Schema.new(string_or_io, options)
end

def fragment(string, options = ParseOptions::DEFAULT_XML, &block)

Parse a fragment from +string+ in to a NodeSet.
###
def fragment(string, options = ParseOptions::DEFAULT_XML, &block)
  XML::DocumentFragment.parse(string, options, &block)
end

def parse(thing, url = nil, encoding = nil, options = ParseOptions::DEFAULT_XML, &block)

Parse XML. Convenience method for Nokogiri::XML::Document.parse
##
def parse(thing, url = nil, encoding = nil, options = ParseOptions::DEFAULT_XML, &block)
  Document.parse(thing, url, encoding, options, &block)
end