SK_XmlNodeGetValueInt Function

Retrieves an integer value from a given XML node.

Remarks

Important Note

When using this function in an application which uses vfork on POSIX-compatible platforms other than Windows and OS X, you should consider using the SK_FLAGS_STRING_CULTURE_USE_CURRENT flag to avoid unexpected behavior.

Syntax

C/C++
SK_ResultCode SK_XmlNodeGetValueInt(int flags, SK_XmlDoc xml, const char *xpath, int *value);
Visual Basic
Declare Function SK_XmlNodeGetValueInt(ByVal flags As Long, ByVal xml As Long, ByVal xpath As String, ByRef value As Long) 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. See the License File Schema topic for examples.
value
Reference/pointer to an integer, which will point to the node's value when the call succeeds.

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_DATA The presence of invalid data has been detected.
SK_ResultCode.SK_ERROR_INVALID_ARGUMENTS Some or all of the arguments are invalid.