class Nokogiri::XML::Reader

def self.new(

the fragment is parsed. See Nokogiri::XML::ParseOptions for more information.
If present, the block will be passed a Nokogiri::XML::ParseOptions object to modify before
[Yields]

Defaults to +ParseOptions::STRICT+.
- +options:+ (Integer | ParseOptions) Options to control the parser behavior.
- +encoding:+ (String) The name of the encoding of the document.
- +url:+ (String) The base URL of the document.
[Optional Parameters]

- +input+ (String | IO): The \XML document to parse.
[Required Parameters]

Create a new Reader to parse an \XML document.

Reader.new(input, url:, encoding:, options:) { |options| ... } → Reader
Reader.new(input) { |options| ... } → Reader
:call-seq:
def self.new(
  string_or_io,
  url_ = nil, encoding_ = nil, options_ = ParseOptions::STRICT,
  url: url_, encoding: encoding_, options: options_
)
  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