Methods#
cr()#
Print a CR
lf()#
Print a LF
- Since
- 4.2.1
print(varargs)#
Print the object on the script document
Parameters:
Name | Type | Description |
---|---|---|
varargs | Objects to print. Will be converted with toString(). |
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(). |
tab()#
Print a tab
text() → {string}#
Get the contents as string
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> | Options for the XML writer (see constructor of $k.XMLWriter) |
- See
Throws:
If the document is not stream-based
Returns:
- Type:
- $k.
XMLWriter