Class Nokogiri::XML::Document
In: lib/nokogiri/xml/document.rb
ext/nokogiri/html_document.c
Parent: Node

Methods

External Aliases

serialize -> to_xml
serialize -> inner_html

Attributes

errors  [RW]  A list of Nokogiri::XML::SyntaxError found when parsing a document

Public Class methods

Set the global XML default for load external subsets.

Create a new document

Set the global XML default for substitute entities.

Public Instance methods

Apply any decorators to node

Get the list of decorators given key

A reference to self

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.

Get the encoding for this Document

The name of this document. Always returns "document"

Get the root node for this document.

Set the root element on this document

Explore a document with shortcut methods.

Get the url name for this document.

[Validate]