Search
XmlPersistContext.addChildElement Method
See Also
 





Adds a new child node with the specified name and value to the specified parent node.

Namespace: MindFusion.Diagramming
File: XmlPersistContext.js

 Syntax

JavaScript  Copy Code

function addChildElement (elementName, parentElement, [innerText])

 Parameters

elementName

String. A string containing the name of new child element.

parentElement

Element. The parent DOM Element object.

innerText
Optional.

String. Optional value to be added as child text node of the new element.

 Return Value

Element. The newly created DOM Element object.

 See Also