XML_PARSE_BUFFER

Parse a buffer containing XML

Synopsis:
CALL XML_PARSE_BUFFER SYM(buffer$) TO status, handle
'xml_parse_buffer( SYM(buffer$), status, handle )
ArgumentEnumerationPurpose
SYM(buffer$)Symbol of buffer
statusKDB_ERROR_ENUMReturn status
handleReturned XML handle
>XML_PARSE_BUFFER

XML_PARSE_BUFFER

Use this function to parse an XML document held in a buffer. It returns a handle which can be used with XML_NEXT to traverse the tree one element at a time. Use XML_CLOSE to free the handle again.

If the document is in a file, and the file has not already been opened, then you can alternatively use XML_OPEN which will open the document and parse it.

The status code values returned are the same as those returned by database routines.

For more on parsing XML see this page.

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