XML_ERROR
| Argument | Enumeration | Purpose |
|---|---|---|
| handle | Handle that encountered the error | |
| status | KDB_ERROR_ENUM | Return status |
| code | Last error code | |
| buf$ | Error text buffer | |
| line | Located on line | |
| col | Located at column | |
| offset | Located at byte offset |
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.