public class XMLDocument extends XMLNode implements Document:
DOM document implementation for XML trees.
@example `klyn import klyn.io.xml.dom
document = XMLDocument() root = document.createElement("root") document.appendChild(root)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | doctypedoctype as DocumentType: |
No summary. |
| public readonly property | documentElementdocumentElement as Element: |
No summary. |
| public property | documentURIdocumentURI as String: |
No summary. |
| public readonly property | domConfigdomConfig as DOMConfiguration: |
No summary. |
| public readonly property | implementationimplementation as DOMImplementation: |
No summary. |
| public readonly property | inputEncodinginputEncoding as String: |
No summary. |
| public property | strictErrorCheckingstrictErrorChecking as Boolean: |
No summary. |
| public readonly property | xmlEncodingxmlEncoding as String: |
No summary. |
| public property | xmlStandalonexmlStandalone as Boolean: |
No summary. |
| public property | xmlVersionxmlVersion as String: |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | XMLDocumentXMLDocument(implementation as DOMImplementation = null, doctype as DocumentType = null): |
Creates an empty XML document. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | _cloneForDocument_cloneForDocument(node as Node, deep as Boolean) as Node throws DOMException: |
Performs a DOM operation. |
| public | _setDocumentType_setDocumentType(doctype as DocumentType) as Void: |
Sets the document type while building a document from a parser. |
| public | adoptNodeadoptNode(source as Node) as Node throws DOMException: |
Performs a DOM operation. |
| public | createAttributecreateAttribute(name as String) as Attr throws DOMException: |
Performs a DOM operation. |
| public | createAttributeNScreateAttributeNS(namespaceURI as String, qualifiedName as String) as Attr throws DOMException: |
Performs a DOM operation. |
| public | createCDATASectioncreateCDATASection(data as String) as CDATASection throws DOMException: |
Performs a DOM operation. |
| public | createComment | No summary. |
| public | createDocumentFragmentcreateDocumentFragment() as DocumentFragment: |
No summary. |
| public | createElementcreateElement(tagName as String) as Element throws DOMException: |
Performs a DOM operation. |
| public | createElementNScreateElementNS(namespaceURI as String, qualifiedName as String) as Element throws DOMException: |
Performs a DOM operation. |
| public | createEntityReferencecreateEntityReference(name as String) as EntityReference throws DOMException: |
Performs a DOM operation. |
| public | createProcessingInstructioncreateProcessingInstruction(target as String, data as String) as ProcessingInstruction throws DOMException: |
Performs a DOM operation. |
| public | createTextNode | No summary. |
| public | getElementById | No summary. |
| public | getElementsByTagName | No summary. |
| public | getElementsByTagNameNS | No summary. |
| public | importNodeimportNode(importedNode as Node, deep as Boolean) as Node throws DOMException: |
Performs a DOM operation. |
| public | normalizeDocumentnormalizeDocument() as Void: |
No summary. |
| public | renameNoderenameNode(node as Node, namespaceURI as String, qualifiedName as String) as Node throws DOMException: |
Performs a DOM operation. |