Click or drag to resize
XmlHelperAddNewElement Method (XmlDocument, String, DateTime)
Adds a new XML element to an XML document.

Namespace: com.softwarekey.Client.Utils
Assembly: PLUSManaged (in PLUSManaged.dll) Version: 5.18.1.0
Syntax
public static XmlElement AddNewElement(
	ref XmlDocument xml,
	string tagName,
	DateTime value
)

Parameters

xml
Type: System.XmlXmlDocument
The XmlDocument to which the element will be added.
tagName
Type: SystemString
The tag name of the element which will be added.
value
Type: SystemDateTime
The DateTime value in the element which will be added.

Return Value

Type: XmlElement
Returns a reference to the newly created XmlElement.
Remarks
ISO-8601 formatting is used when storing the DateTime value in the XML element.
See Also