XmlLastError
Description
All XML functions and blocks simply return a boolean information as a return value. This function can be called after any other function giving a FALSE return. It gives a detailed error code about the last detected error.
Outputs
Output |
Data type |
Description |
iErr |
DINT |
Error code reported by the last call: 0 = OK. other = error. |
Possible error codes:
Error Code |
Description |
1 2 3 4 5 6 7 8 9 |
Invalid instance of XMLManager (should be only one). Manager already open - should be only one instance declared. Manager not open - no instance of XmlManager declared. Invalid handle. Too many tags allocated. Invalid handle of a text buffer (or no instance of TxbManager declared). Invalid XML file or XML syntax error. Cannot read file. Cannot write file. |
|
Memory management / Miscellaneous XmlManager: Main gatherer of XML data in memory. XmlLastError: Get detailed error report about last call. XmlNewDoc: Create an empty XML document. XmlFreeDoc: Release a XML document from memory. XmlParseDocTxb: Parse a XML document from text buffer. XmlParseDocFile: Parse a XML document form file. XmlWriteDocTxb: Format XML data to text buffer. XmlWriteDocFile: Format XML data to file. XmlGetTagName: Get name of a XML tag. XmlCheckTagName: Test the name of a XML tag. XmlGetTagCont: Get tag contents as STRING. XmlGetTagContT: Get tag contents as text buffer. XmlGetTagAttrib: Get tag attribute. XmlFirstChild: Start enumerating child tags. XmlNextChild: Enumerate child tags XmlSetTagAttrib: Set tag attribute. XmlSetTagCont: Set tag contents with STRING. XmlSetTagContT: Set tag contents with text buffer. XmlAddChild: Add a child tag. Exchanging variables using their name XmlGetSybValue: Get variable value using its symbol. XmlSetSybValue: Set variable value using its symbol. |
XmlLastError |
IEC 61131-3 Automation platform > Programming - Reference guide > Advanced operations > XML writing and parsing > Memory Management / Miscellaneous > XmlLastError |
Created with the Personal Edition of HelpNDoc: Easily Add Encryption and Password Protection to Your PDFs