HtmlDocument (gb.xml.html)

Tato třída dědí XmlDocument in gb.xml.

Tato třída je vytvořitelný.

Vlastnosti
Base   Returns or sets the base URL to use for all relative URLs contained within a document. If no <base> tag exists in the document, this property returns Null, and creates a new <base> element when set.
Body   Returns or sets the <body> element of the document. If no <body> element exists in the document, it is created upon reading this property.
Favicon   Sets the favicon path to be used
Head   Returns or sets the <head> element of the document. If no <head> element exists in the document, it is created upon reading this property.
Html5  
Lang   Sets the content of the Lang tag
Scripts   property Read Scripts As comp/gb.xml.html.HtmlDocumentScripts
StyleSheets   HtmlDocument.StyleSheets.Add("main.css")
Title   Returns or sets the title of the HTML document

Inherited properties
All   property All As xmlnode Returns an array with every xmlnode
Content   Returns the full content of the document.
Root   Returns or defines the root element of this document.

Metoda
GetElementById   Function GetElementById ( Id As String [ , Depth As Integer ] ) As XmlElement
GetElementsByClassName   Function GetElementsByClassName ( ClassName As String [ , Depth As Integer ] ) As XmlElement

Inherited methods
CreateElement   Creates a new element TagName and returns it as an XmlElement
FromString   Removes all the content of this document, and loads its new contents from the given XML string.
GetElementsByNamespace   Function GetElementsByNamespace ( Namespace As String [ , Mode As Integer, Depth As Integer ] ) As XmlElement
GetElementsByTagName   Returns all the elements of the document whose tag name matches Name.
HtmlFromString   Removes all the content of this document, and loads its new contents from the given HTML string.
Open   Removes all the content of this document, and loads its new contents from the given file.
Save   Saves the content of the document to FileName.
ToString   Formats the current document to a string, which can be later re-parsed.
Write   A synonymous of the Save function.