LoadXML()
Syntax
Result = LoadXML(#XML, Filename$ [, Encoding])Description
Loads a XML tree from the given file. The tree can later be accessed trough the #XML value. If #PB_Any is used as '#XML' parameter, the new XML tree number will be returned as 'Result'.
The optional 'Encoding' parameter can be used to force the parser to use a specific encoding. (This overwrites the encoding set in the XML declaration!) Possible values are #PB_Ascii, #PB_Unicode or #PB_UTF8. This parameter should be used when the document does not have an XML declaration, or the encoding information is provided outside of the XML document, for example through a mime type header in a communication protocol.
Return value
Returns nonzero if the file could be opened and read. Note that this does not mean that the XML contained in the file was valid. 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.
Supported OS
All