SK_XmlElementAddNew Function

Adds an element to a given XML document.

Syntax

C/C++
SK_ResultCode SK_XmlElementAddNew(int flags, SK_XmlDoc xml, const char *xpath, const char *element, const char *value);
Visual Basic
Declare Function SK_XmlElementAddNew(ByVal flags As Long, ByVal xml As Long, ByVal xpath As String, ByVal element As String, ByVal value As String) As Long

Arguments

flags
Any flags passed into this function-call.
xml
The SK_XmlDoc handle.
xpath
XPath specifying the location of the node in the XML document to which the child element will be appended.
element
The new element's tag name.
value
The new element's value.

Returns

All possible return values are included in the SK_ResultCode enumeration. Return codes to expect include:

Result Code Description
SK_ResultCode.SK_ERROR_NONE No error.
SK_ResultCode.SK_ERROR_INVALID_ARGUMENTS Some or all of the arguments are invalid.