SK_XmlNodeGetValueDouble Function

Retrieves a double floating point 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_XmlNodeGetValueDouble(int flags, SK_XmlDoc xml, const char *xpath, double *value);
Visual Basic
Declare Function SK_XmlNodeGetValueDouble(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 a double, 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_XML_PARSER_FAILED The XML parser encountered an error.
SK_ResultCode.SK_ERROR_XML_NODE_MISSING The requested XML node could not be found.
SK_ResultCode.SK_ERROR_INVALID_ARGUMENTS Some or all of the arguments are invalid.