AddElement(String,String) Method
- Last UpdatedNov 06, 2025
- 1 minute read
This override adds an element and its text to the LAST added element in the XML doc Throws exception if the call fails eg if the current element does not exist
'Declaration
Public Overloads Function AddElement( _
ByVal nodeName As String, _
ByVal nodeText As String _
) As XmlElement
'Usage
Dim instance As XMLBuilder
Dim nodeName As String
Dim nodeText As String
Dim value As XmlElement
value = instance.AddElement(nodeName, nodeText)
public XmlElement AddElement(
string nodeName,
string nodeText
)
Parameters
- 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