new DOMDocument()
Extends
Methods
cr()
Print a CR
- Inherited From
lf()
Print a LF
- Since
- 4.2.1
- Inherited From
print(varargs)
Print the object on the script document
Parameters:
Name | Type | Description |
---|---|---|
varargs | Objects to print. Will be converted with toString(). |
- Inherited From
println(varargs)
Print the objects on the script document and adds a line break (LF)
Parameters:
Name | Type | Description |
---|---|---|
varargs | Objects to print. Will be converted with toString(). |
- Inherited From
tab()
Print a tab
- Inherited From
text() → {string}
Get the contents as string
- Inherited From
Throws:
If the document is based on an external stream (file etc.)
Returns:
- Type:
- string
xmlWriter(optionsopt) → {$k.XMLWriter}
Returns an XML writer that writes on this document
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options | object | <optional> | $(#jsOptionsComment) |
- Inherited From
Throws:
If the document is not stream-based
Returns:
- Type:
- $k.XMLWriter