XHtmlDocument

An XHTML document.

Constructors

this
this(DomParserSettings parserSettings)

Creates a new xhtml document.

Members

Functions

getElementById
XHtmlNode getElementById(string id)

Gets a dom node by an attribute named "id" matching the given value.

parseElements
void parseElements(DomNode[] elements)

Parses the elements from the dom to the document.

querySelector
XHtmlNode querySelector(string selector)

Queries the first dom node based on a css3 selector.

querySelectorAll
XHtmlNode[] querySelectorAll(string selector)

Queries all dom nodes based on a css3 selector.

repairDocument
void repairDocument()

XHtml documents cannot be repaired. Use HtmlDocument.repairDocument() instead.

toString
string toString()

Converts the xhtml document to a properly formatted xhtml document-string.

Properties

head
XHtmlNode head [@property getter]

Gets the head node.

root
XHtmlNode[] root [@property setter]

Sets the root nodes of the html document.

rootNodes
XHtmlNode[] rootNodes [@property getter]

Gets the root nodes of the html document.

Inherited Members

From DomDocument

parseElements
void parseElements(DomNode[] elements)

Parses the elements from the dom to the document.

repairDocument
void repairDocument()

Repairs the document if possible.

parserSettings
DomParserSettings parserSettings [@property getter]

Gets the settings used for parsing the document.

Meta