public class DOMDocument extends XMLDocument
DOM document returned by DOMParser.
DOMDocument is an XMLDocument whose elements are created as DOMElement, while preserving the standard Document interface.
import klyn.io.xml.dom
document = DOMDocument()
root = document.createElement("root")| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | documentElementdocumentElement as DOMElement |
Root element of the parsed document. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | DOMDocumentDOMDocument(implementation as DOMImplementation = null, doctype as DocumentType = null) |
Creates an empty parser document. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | createElementcreateElement(tagName as String) as Element throws DOMException |
Creates a DOM parser element without a namespace. |
| public override | createElementNScreateElementNS(namespaceURI as String, qualifiedName as String) as Element throws DOMException |
Creates a DOM parser element with an optional namespace. |
| public override | getElementsByTagNamegetElementsByTagName(tagName as String) as DOMNodeList |
Returns document descendant elements matching a tag name. |
| public override | getElementsByTagNameNSgetElementsByTagNameNS(namespaceURI as String, localName as String) as DOMNodeList throws DOMException |
Returns document descendant elements matching a namespace URI and local name. |