Adds a new child node with the specified name and value to the specified parent node.
Namespace: MindFusion.Diagramming
Package: XmlPersistContext.js
JavaScript Copy Code |
---|
function addChildElement (elementName, parentElement, [innerText]) |
A string containing the name of new child element.
The parent DOM Element object.
Optional value to be added as child text node of the new element.
Type: Element
The newly created DOM Element object.