XmlFirstChild
Description
This function returns the handle of the first child tag having the specified name. If “szTag” is empty, then the first child tag is returned whatever its name is.
Inputs
Input |
Data type |
Description |
hTag |
DINT |
Handle of the XML tag. |
szTag |
STRING |
Name of the wished child tag. Empty string for enumerating all children. |
Outputs
Output |
Data type |
Description |
hChildTag |
DINT |
Handle of the first child tag matching the specified name, or 0 if no child found. |
Typical use in ST:
hChild := XmlFirstChild (hParentTag, 'TagName');
while hChild <> 0 do
(* explore the tag *)
hChild := XmlNextChild (hParentTag, hChild, 'TagName');
end_while;
|
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. |
XmlFirstChild |
IEC 61131-3 Automation platform > Programming - Reference guide > Advanced operations > XML writing and parsing > Exploring a XML document > XmlFirstChild |
Created with the Personal Edition of HelpNDoc: Keep Your PDFs Safe from Unauthorized Access with These Security Measures