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