Adds an element to the specified XmlNode using the specified namespace.
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static XmlNode AddElement( this XmlNode node, string elementName, string elementValue, bool useCData, string namespaceUri, string namespaceAbbr ) |
Visual Basic |
---|
<ExtensionAttribute> Public Shared Function AddElement ( node As XmlNode, elementName As String, elementValue As String, useCData As Boolean, namespaceUri As String, namespaceAbbr As String ) As XmlNode |
Parameters
- node
- Type: System.Xml..::..XmlNode
The node to add the element to.
- elementName
- Type: System..::..String
Name of the element (without the abbreviated prefix).
- elementValue
- Type: System..::..String
The element value.
- useCData
- Type: System..::..Boolean
if set to true use a CData encapsulation.
- namespaceUri
- Type: System..::..String
The namespace URI.
- namespaceAbbr
- Type: System..::..String
The namespace abbreviation.