XML_ERROR

Return details of last error

Synopsis:
CALL XML_ERROR handle TO status, code, buf$, [line], [col], [offset]
'xml_error( handle, buf$, [line], [col], [offset] )
ArgumentEnumerationPurpose
handleHandle that encountered the error
statusKDB_ERROR_ENUMReturn status
codeLast error code
buf$Error text buffer
lineLocated on line
colLocated at column
offsetLocated at byte offset
>XML_ERROR

XML_ERROR

The XML tree is parsed on the first call to XML_NEXT. If an error was found then parsing stops at that point and XML_NEXT will return a status code of 40. The tree will not be available. To get more details about the error you should call this function which will then return a unique error code in the variable code and a simple text explanation in the string buf$. You can optionally get the line and column the parser was processing and the byte offset into the document.

History
Introduced in KCML 6.00
See Also:
XML_CLOSE, XML_NEXT, XML_OPEN, XML_OPTIONS, XML_PARSE_BUFFER, XML_TEXT
KCML database status codes