XML_OPEN

Open an XML file

Synopsis:
CALL XML_OPEN file$ TO status, handle
'xml_open( file$, handle )
ArgumentEnumerationPurpose
file$Name of XML file to open
statusKDB_ERROR_ENUMReturn status
handleReturned XML Handle
>XML_OPEN

XML_OPEN

Use this function to open an XML file for parsing. You can then use the handle it returns in XML_NEXT to traverse the tree one node at a time and XML_CLOSE to close the file again.

If the file has already been opened elsewhere then use XML_PARSE_BUFFER instead and pass the contents in a buffer.

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_OPTIONS, XML_PARSE_BUFFER, XML_TEXT
KCML database status codes