Class | Nokogiri::XML::Document |
In: |
lib/nokogiri/ffi/xml/document.rb
lib/nokogiri/xml/document.rb ext/nokogiri/xml_document_fragment.c |
Parent: | Node |
serialize | -> | to_xml |
dup | -> | clone |
errors | [RW] | A list of Nokogiri::XML::SyntaxError found when parsing a document |
Parse an XML file. thing may be a String, or any object that responds to read and close such as an IO, or StringIO. url is resource where this document is located. encoding is the encoding that should be used when processing the document. options is a number that sets options in the parser, such as Nokogiri::XML::ParseOptions::RECOVER. See the constants in Nokogiri::XML::ParseOptions.
Copy this Document. An optional depth may be passed in, but it defaults to a deep copy. 0 is a shallow copy, 1 is a deep copy.