MindFusion.UI for WebForms Programmer's Guide

XmlPersistContext.AddChildElement Method (String, XmlElement, String)

See Also
 





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

Namespace: MindFusion.UI.Web
Assembly: MindFusion.UI.Web

 Syntax

C#  Copy Code

public XmlElement AddChildElement (
    string elementName,
    XmlElement parentElement,
    string innerText
)

Visual Basic  Copy Code

Public Function AddChildElement( _
    elementName As String, _
    parentElement As XmlElement, _
    innerText As String _
) As XmlElement

 Parameters

elementName

Type: String
A string specifying the name of the child node.

parentElement

Type: XmlElement
The parent XML element.

innerText

Type: String
The inner text to write for this element.

 Return Value

Type: XmlElement
An XmlElement corresponding to the child node.

 See Also