ParseXML()

Syntax

Result = ParseXML(#XML, Input$)
Description
Creates a new XML tree from XML data in the string. The XML is expected to be encoded in the string format of the executable (Ascii or Unicode). If another encoding needs to be parsed, the CatchXML() function can be used instead.

Parameters

#XML A number to identify the new XML. #PB_Any can be used to auto-generate this number.
Input$ The string containing the XML to parse.

Return value

This function only returns zero on memory errors. To check for parser errors XMLStatus() should be used. In case of a parsing error, all data parsed before the error is accessible in the XML tree.

See Also

FreeXML(), CreateXML(), LoadXML()

Supported OS

All

<- ParentXMLNode() - XML Index - PreviousXMLNode() ->