Gets the name of the root node.

Syntax

char *XML_GetRootNodeName(
  XML_HANDLE hXml,
  int *ErrCode
);

Parameters

hXml
[in] XML handle
ErrCode
[out] A pointer to a variable that returns an error code. Specify NULL when no error code is required.

Return value

Returns a pointer to a string of the name for the root node if the function succeeds, otherwise NULL.

Remarks

Returns a pointer to a string of the name for the root node.

If the function fails, it returns NULL and ErrCode returns the following error code:

Error codeDescription
XML_INVALID_PARAMETER_ERRORParameter error
XML_INVALID_XML_OBJECT_ERRORInvalid XML handle

Requirements

Header file:
XML.h
CodeConversion.h : ver. 1.1.1 or later.
Library file:
libXML.a
libCodeConversion.a : ver.1.1.1 or later
libSTARTUPOPH5000.a

See also

Last updated: 2021/10/21