Docs Menu
API Developer Guide / middleware / pub / xml / createTextNode

Service: createTextNode

This service creates a text node within an existing XML document.

Input Parameter:

Name Type Description
text: String The text content for the new text node.
domDocument: Object The XML document in which the text node will be created.

Output Parameter:

Name Type Description
textNode: Object The newly created text node.