Skip to content

XML_GET_NAME ​

XML_GET_NAME returns the name of an element.

Syntax ​

leo-grammar
CC "Documentation" XML_GET_NAME	[ node:intValue ]

#--> RESULT name:strValue ecode:intValue .
CC "Documentation" XML_GET_NAME	[ node:intValue ]

#--> RESULT name:strValue ecode:intValue .

Parameters ​

  • node (idValue, optional) - ID of another node than the current for which to get the name.

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success; 3 - XML_NOPARSER - a file has to be opened first; 15 - XML_NODENOTEXISTING - the element with the specified id is not existing are already discarded from memory;
  • name (strValue) - name of the node

Details ​

See Also ​

Examples ​

asc
# parse the xml string: <MAIN><SUB/></MAIN>
PROCEDURE PARSESUB {
   CC "Documentation" XML_GETPARENT
   CC "Documentation" XML_GETNAME node:(parent)
   # will return "MAIN"
}
# parse the xml string: <MAIN><SUB/></MAIN>
PROCEDURE PARSESUB {
   CC "Documentation" XML_GETPARENT
   CC "Documentation" XML_GETNAME node:(parent)
   # will return "MAIN"
}

Versions and Changes ​

Available since ADOxx 1.3