FB_XmlDomParser

![]() | Strings in UTF-8 format The variables of type STRING used here are based on the UTF-8 format. This STRING formatting is common for MQTT communication as well as for JSON documents. In order to be able to receive special characters and texts from a wide range of languages, the character set in the Tc3_IotBase and Tc3_JsonXml libraries is not limited to the typical character set of the data type STRING. Instead, the Unicode character set in UTF-8 format is used in conjunction with the data type STRING. If the ASCII character set is used, there is no difference between the typical formatting of a STRING and the UTF-8 formatting of a STRING. Further information on the UTF-8 STRING format and available display and conversion options can be found in the documentation for the Tc2_Utilities PLC library. |
Outputs
Name | Type |
|---|---|
initStatus | HRESULT |
Methods
Name | Description |
|---|---|
Appends a new attribute to an existing node. | |
Appends a new attribute to an existing node (Boolean). | |
Appends a new attribute to an existing node (Double). | |
Appends a new attribute to an existing node (Float). | |
Appends a new attribute to an existing node (Integer). | |
Appends a new attribute to an existing node (Integer64). | |
Appends a new attribute to an existing node (Unsigned Integer). | |
Appends a new attribute to an existing node (Unsigned Integer64). | |
Appends a new attribute to an existing node. | |
Appends a new node below an existing node. | |
Appends a new node below an existing node (Boolean). | |
Appends a new node below an existing node (Double). | |
Appends a new node below an existing node (Float). | |
Appends a new node below an existing node (Integer). | |
Appends a new node below an existing node (Integer64). | |
Appends a new node below an existing node (Unsigned Integer). | |
Appends a new node below an existing node (Unsigned Integer64). | |
Appends a new node below an existing node. | |
Appends a new node below an existing node. | |
Reads the attribute of a given XML node. | |
Returns the value of an attribute as data type Boolean. | |
Returns the value of an attribute as data type Double. | |
Returns the value of an attribute as data type Float. | |
Returns the value of an attribute as data type Integer. | |
Returns the value of an attribute as data type Integer64. | |
Returns the value of an attribute as data type Unsigned Integer. | |
Returns the value of an attribute as data type Unsigned Integer64. | |
Returns an iterator over all attributes of an XML node. | |
Converts the current position of an iterator to an XML attribute object. | |
Returns the name of a given attribute. | |
Used to navigate the DOM and returns an iterator for all attributes found at an XML node. | |
Returns the text of a given attribute. | |
Returns an iterator over all child elements of an XML node. | |
Returns an iterator over all child elements of an XML node, starting at a particular element. | |
Used to navigate through the DOM. It returns a reference to the (first) child element of the current node. | |
Used to navigate through the DOM. It returns a reference to a child element in the XML document. | |
Used to navigate through the DOM. It returns a reference to a child element in the XML document. | |
Used to navigate through the DOM. It returns a reference to a child element in the XML document. | |
Used to navigate through the DOM. It returns an iterator for several child elements found in the XML document. | |
Used to navigate through the DOM. It returns an iterator for several child elements found in the XML document. | |
This method resets iterators that have already been used so that they can be used again the next time the program is run. | |
Checks two iterators for equality. | |
Reads the value of an XML attribute and writes it to a variable of data type String. | |
Copies the contents of the DOM memory into a variable of data type String. | |
Reads the value of an XML node and writes it to a variable of data type String. | |
Reads the XML structure of an XML node and writes it to a variable of data type String. | |
End |
|
Navigates through an XML document using a path that was transferred to the method. | |
Returns the length of the value of an XML attribute. | |
Returns the length of an XML document in bytes. | |
Returns the root node of an XML document. | |
Returns the length of the value of an XML node. | |
Returns the length of the XML structure of an XML node. | |
Returns a reference to the first XML node in the XML document. | |
Inserts an attribute to an XML node, copying the name and value of an existing attribute. | |
Inserts an attribute to an XML node. | |
Inserts a node to an existing XML node. | |
Inserts a new node to an existing XML node and copies an existing node. | |
Checks whether a given XML iterator is at the end of the iteration that is to be performed. | |
Loads a XML document from a file. | |
Generates a new empty XML document in the DOM memory. | |
Sets an XML iterator for the next object that is to be processed. | |
Returns the next attribute for a given XML attribute. | |
Sets an XML iterator for the next object that is to be processed, which is identified by its name. | |
Returns the next direct node for a given XML node at the same XML level. | |
Returns the next direct node for a given XML node with a particular name at the same XML level. | |
Used in conjunction with an iterator to navigate through the DOM. | |
Returns the text of an XML node as data type Boolean. | |
Returns the text of an XML node as data type Double. | |
Returns the text of an XML node as data type Float. | |
Returns the text of an XML node as data type Integer. | |
Returns the text of an XML node as data type Integer64. | |
Returns the text of an XML node as data type Unsigned Integer. | |
Returns the text of an XML node as data type Unsigned Integer64. | |
Returns the name of an XML node. | |
Returns the text of an XML node. | |
Loads an XML object into the DOM memory for further processing. | |
RemoveAttribute |
|
RemoveAttributeByName |
|
Removes an XML child node from a given XML node. | |
Removes an XML child node from a given XML node. | |
Saves the current XML document in a file. | |
Sets the value of an attribute. | |
Sets the value of an attribute (Boolean). | |
Sets the value of an attribute (double). | |
Sets the value of an attribute (float). | |
Sets the value of an attribute (integer). | |
Sets the value of an attribute (Integer64). | |
Sets the value of an attribute (Unsigned Integer). | |
Sets the value of an attribute (Unsigned Integer64). | |
Sets the value of an XML node (String). | |
Sets the value of an XML node (Boolean). | |
Sets the value of an XML node (Double). | |
Sets the value of an XML node (Float). | |
Sets the value of an XML node (Integer). | |
Sets the value of an XML node (Integer64). | |
Sets the value of an XML node (Unsigned Integer). | |
Sets the value of an XML node (Unsigned Integer64). |
Requirements
TwinCAT version | Hardware | Libraries to be integrated |
|---|---|---|
TwinCAT 3.1, Build 4022 | x86, x64, Arm® | Tc3_JsonXml |
