XmlManager
Description
This function block is used for managing the memory allocated for XML tags and documents. It takes care of releasing the corresponding memory when the application stops, and can be used for tracking memory leaks. There must be one and only one instance of this block declared in the IEC application in order to use any other Xml function.
Outputs
Output |
Data type |
Description |
bOK |
BOOL |
TRUE if the XML memory system is correctly initialized. |
nBuffers |
DINT |
Number of XML documents currently allocated in memory. |
nTags |
DINT |
Number of XML tags currently allocated in memory. |
|
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. |
XmlManager |
IEC 61131-3 Automation platform > Programming - Reference guide > Advanced operations > XML writing and parsing > Memory Management / Miscellaneous > XmlManager |
Created with the Personal Edition of HelpNDoc: Effortlessly Create Encrypted, Password-Protected PDFs