AddElement(XmlElement,String,String) Method
- Last UpdatedNov 06, 2025
- 1 minute read
This override adds an element and its text to the specified parent XMLElement object in the XML doc Throws exception if the call fails
'Declaration
Public Overloads Function AddElement( _
ByVal parentElement As XmlElement, _
ByVal nodeName As String, _
ByVal nodeText As String _
) As XmlElement
'Usage
Dim instance As XMLBuilder
Dim parentElement As XmlElement
Dim nodeName As String
Dim nodeText As String
Dim value As XmlElement
value = instance.AddElement(parentElement, nodeName, nodeText)
public XmlElement AddElement(
XmlElement parentElement,
string nodeName,
string nodeText
)
Parameters
- parentElement
- The parent XMLElement to which the specified node and text must be added
- nodeName
- The name of the node to add as a string
- nodeText
- The text for this new node as a string
Return Value
Returns a reference to the newly added XmlElement