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.UI.WebForms
Package: MindFusion.UI.WebForms

 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, _
    Optional innerText As String = "" _
) As XmlElement

 Parameters

elementName

A string specifying the name of the child node.

parentElement

The parent XML element.

innerText
Optional.

The inner text to write for this element.

 Return Value

Type: XmlElement
An XmlElement corresponding to the child node.

 See Also

XmlPersistContext Members
XmlPersistContext Class
MindFusion.UI.WebForms Namespace