module Nokogiri::XML

def load_external_subsets=(value = true)

Sets whether or not external subsets should be loaded
##
def load_external_subsets=(value = true)
  Document.load_external_subsets = value
end

def parse string_or_io, url = nil, encoding = nil, options = 2159

Parse an XML document. See Nokogiri.XML.
##
def parse string_or_io, url = nil, encoding = nil, options = 2159
  if string_or_io.respond_to?(:read)
    url ||= string_or_io.respond_to?(:path) ? string_or_io.path : nil
    return Document.read_io(string_or_io, url, encoding, options)
  end
  # read_memory pukes on empty docs
  return Document.new if string_or_io.nil? or string_or_io.empty?
  Document.read_memory(string_or_io, url, encoding, options)
end

def substitute_entities=(value = true)

Sets whether or not entities should be substituted.
##
def substitute_entities=(value = true)
  Document.substitute_entities = value
end