Xml
Wrapper for a native XML tree.
This class is an implementation of a simple XML tree. It is not XML DOM-compliant, cannot mix text nodes with tags and does not support comments. It does not support XML validation against DTD or RELAX NG either. However, it is much faster.
Since it is based on Pointer, all methods in this class do not require to be run on the main thread, however they require you to run them always on the same thread. To pass it to a different thread, you can change its thread but beware of the possible consequences.
Please read documentation of Pointer on how you should manage pointers lifetime.
Constructors
Functions
Link copied to clipboard
Change thread this pointer can be accessed from to the current one.
Link copied to clipboard
Create an empty child node.
Create a child node with a value.
Link copied to clipboard
Dump the XML tree to an output stream.
Link copied to clipboard
Get an attribute from the tree.
Link copied to clipboard
Get all attributes.
Link copied to clipboard
Get child node at path.
Link copied to clipboard
Opinionated version of getOrCreateChild which created empty nodes if the children don't exist.
Link copied to clipboard
Get all children.
Link copied to clipboard
Get a child's value.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get child node value or child node attribute value at path.
Link copied to clipboard
Check if the node has an attribute.
Check if this node has an attribute with a specified value.
Link copied to clipboard
Check if the pointer is the same as in another pointer.
Link copied to clipboard
Remove an attribute.
Link copied to clipboard
Remove a child from the tree.
Link copied to clipboard
Remove a child from the tree.
Link copied to clipboard
Replace a child.
Link copied to clipboard
Set an attribute.
Link copied to clipboard
Set a child's value.
Link copied to clipboard
Fluent wrapper for setAttribute.
Link copied to clipboard
Fluent wrapper for setAttribute.