The DomDocument class / om.DomDocument methods |
Create a new text node in the DOM document.
createChars( string STRING ) RETURNING result om.DomNode
Use the method createChars() to create a new om.DomNode text node. The content of the text node must be passed as parameter.
The new created node will have the reserved tagName "@chars", and a single attribute named "@chars" storing the character data.
To hold the reference to the new node, define a variable with the type om.DomNode type.
DEFINE n om.DomNode LET n = mydoc.createChars("Hello, world!")