Class HTMLTree::XMLParser
In: lib/html/xmltree.rb
lib/html/xmltree.rb
Parent: HTML::StackingParser

Methods

document   document   html   html   new   new   reset   reset   root   root   tree   tree  

Public Class methods

verbose:if true, will warn to $stderr on unknown

tags/entities/characters, as well as missing end tags and extra end tags.

strip_white:if true, remove all non-essential whitespace. Note

that there are browser bugs that may cause this to change the appearance of HTML (even though it shouldn‘t by the standard).

verbose:if true, will warn to $stderr on unknown

tags/entities/characters, as well as missing end tags and extra end tags.

strip_white:if true, remove all non-essential whitespace. Note

that there are browser bugs that may cause this to change the appearance of HTML (even though it shouldn‘t by the standard).

Public Instance methods

Return the document that was built. This will be an REXML::Document that represents the whole document. The <html> node is a child of this.

Return the document that was built. This will be an REXML::Document that represents the whole document. The <html> node is a child of this.

Return the <html> node, if any.

Return the <html> node, if any.

Reset this parser so that it can parse a new document.

Reset this parser so that it can parse a new document.

Return the root of the document, if any.

Return the root of the document, if any.

[Validate]