This plugin can be read, saved, analyzed XML files or s…
1. Node Description
DT XML | File
Read Xml By File
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-61.png)
Loads the file with the passed path.
buffer to load.
@param Path The path to use
Read Xml By String
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-62.png)
Loads the file with the passed text.
buffer to load.
@param String The text to use
Get Root Node
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-63.png)
Returns the root node of the loaded file. nullptr if no file loaded.
It is assumed that there will always be one and only one root node.
@return Pointer to root node
Save
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-64.png)
Write to disk, UTF-16 format only at the moment
@param Path File path to save to
@return Whether writing the XML to a file succeeded
DT XML | Node
Get Next Node
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-65.png)
Gets the next node in a list of nodes
Get Children Nodes
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-66.png)
Gets a list of children nodes
Get First Child Node
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-67.png)
Gets the first child of this node which can be iterated into with GetNextNode
Find Child Node
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-68.png)
Finds the first child node that contains the specified tag
Get Tag
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-69.png)
Gets the tag of the node
Get Content
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-70.png)
Gets the value of the node
Get Attributes
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-71.png)
Gets all of the attributes in this node
@return List of attributes in this node
Get Attribute
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-72.png)
Gets an attribute that corresponds with the passed-in tag
Set Content
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-73.png)
Sets the new value of the node
Set Attributes
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-74.png)
Sets the attributes of the node
Append Child Node
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-75.png)
Adds a child node to this node
@param InTag The tag of the child node
@param InContent (optional) The content of the child node
Append Child Node AndAttribute
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-76.png)
Adds a child node to this node
@param InTag The tag of the child node
@param InContent (optional) The content of the child node
@param InAttributes (optional) An array of attributes of the child node
DT XML | Attribute
Get Tag
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-77.png)
Gets the tag of the node attribute
Get Value
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-78.png)
Gets the value of the node attribute
Make Attribute
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-79.png)
Creates a node attribute
Break Attribute
![[DTXml] XML Read Save Plugin Description [DTXml] XML Read Save Plugin Description](https://dt.cq.cn/wp-content/uploads/2023/07/image-80.png)
Breaks an node attribute