$k. DOMDocument

new DOMDocument()

Extends

Methods

cr()

Print a CR

lf()

Print a LF

Since
  • 4.2.1

print(varargs)

Print the object on the script document

Parameters:
NameTypeDescription
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:
NameTypeDescription
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.)

Type
$k.exception.TypeError
Returns:
Type: 
string

xmlWriter(optionsopt) → {$k.XMLWriter}

Returns an XML writer that writes on this document

Parameters:
NameTypeAttributesDescription
optionsobject<optional>

$(#jsOptionsComment)

Throws:

If the document is not stream-based

Type
$k.exception.TypeError
Returns:
Type: 
$k.XMLWriter