XmlHelperAddNewElement Method (XmlDocument, XmlElement, String, Decimal) |
Adds a new XML element to an XML document's referenced node.
Namespace: com.softwarekey.Client.UtilsAssembly: PLUSManaged (in PLUSManaged.dll) Version: 5.23.4.0
Syntax public static XmlElement AddNewElement(
ref XmlDocument xml,
ref XmlElement element,
string tagName,
decimal value
)
Public Shared Function AddNewElement (
ByRef xml As XmlDocument,
ByRef element As XmlElement,
tagName As String,
value As Decimal
) As XmlElement
public:
static XmlElement^ AddNewElement(
XmlDocument^% xml,
XmlElement^% element,
String^ tagName,
Decimal value
)
Parameters
- xml
- Type: System.XmlXmlDocument
The XmlDocument to which the element will be added. - element
- Type: System.XmlXmlElement
The root XmlElement, under which the new element will be added. - tagName
- Type: SystemString
The tag name of the element which will be added. - value
- Type: SystemDecimal
The new node's decimal value.
Return Value
Type:
XmlElementReturns a reference to the newly created XmlElement.
See Also