ASP.NET Pack Programmer's Guide
XmlPersistContext.addChildElement Method
See Also
 





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

Namespace: MindFusion.Diagramming
Package: XmlPersistContext.js

 Syntax

JavaScript  Copy Code

function addChildElement (elementName, parentElement, [innerText])

 Parameters

elementName

A string containing the name of new child element.

parentElement

The parent DOM Element object.

innerText
Optional.

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

 Return Value

Type: Element
The newly created DOM Element object.

 See Also

XmlPersistContext Members
XmlPersistContext Class
MindFusion.Diagramming Namespace