An XML attribute
Create a new attribute with the given name and value. If the provided value isn't a string, it will be converted with toString
Create from string
Create a new attribute with the xml prefix xml:prefix='value'
Create a new attribute defining the default namespace xmlns='value'
Create a new attribute defining an namespace xmlns:prefix='value'
Get the name of this attribute. The name cannot be changed
Set the name of this attribute. This must be a string.
Convert to string representation
Get the string value of the attribute
Get the value of the attribute, using the converter registered by the provided id. Aborts fiber if no such converter is found, or it fails to convert the value
Gets the value of the attribute using the converter registered by the provided id. If no such converter is found, or it fails to convert, the provided default is returned
Set the string value of the attribute, coverting to string where necessary using a converter registered under an id matching the type of the object. If no converter is found, falls back to .toString
Convert to string in parts and pass to a function. Allows more efficient writing to file streams where avaliable
An XML CDATA node
Create a new XText node with the given string content
Create from string
Convert to string representation
Get the string content
Set the string content. If it's not a string, it is converted with toString
Convert to string in parts and pass to a function. Allows more efficient writing to file streams where avaliable
An XML comment
Create a new comment with the given string content
Create from string
Convert to string representation
Get the string content of this comment
Set the string content of this comment. If it's not a string, it is converted with toString
Convert to string in parts and pass to a function. Allows more efficient writing to file streams where avaliable
Manages converters which convert values to and from the string forms stored in the xml document. Also serves as a base class for custom converters
Gets a converter with the given id. Aborts fiber if no match is found
Register a converters with the given id
Gets a converter with the id matching the type of the provided value, or if none is found falls back to .toString
Gets a converter with the given id, or null if no match is found
The description included in error messages. Overwrite this in custom converters
Convert from string to the output value. Overwrite this in custom converters.
Convert from value to string. Optionally overwrite this in custom converters, the default is .toString
An XML document
Creates an empty document
Creates a document with content. Content can be XElement, XComment, or Sequence of them
Create from parsing a string
Add a child node to the document. This can be an XComment or an XElement, or a Sequence of them.
Adds each of the items in the sequence to this container
Sequence of the child comments, or an empty sequence if there are no comments
Gets the first element of this name, or null if no element of the name exists
Get first element of name. If no element with that name is found, aborts fiber.
Gets the String value of the first element of this name. Since an element's value is never null, this will only be null if the element is not found.
Get the first element of name, and converts using the given converter. If no element of that name is found, or the value fails to be converted, aborts fiber
Get first element of name, and converts using the given converter. If no element of that name is found, or the value fails to be converted, returns default
Sequence of the child elements, or an empty sequence if there are no elements
Gets all elements of the given name, or an empty sequence if no matching elements are found
Gets the first element which fulfils the predicate, or null if no match is found
Gets the first element of this name which also fulfils the predicate, or null if no match is found
Sequence of the child nodes
Remove a child XComment or XElement
The first and only node in this document that is an XElement. null if there is no XElement in the document.
Convert to string representation
Convert to string in parts and pass to a function. Allows more efficient writing to file streams where avaliable
An XML element
Creates empty element
Creates element. Content can be string, node, attribute, or Sequence of those things.
Anything else is converted with toString. Keep in mind that a Sequence will not be converted with toString, but rather, it is iterated over.
Create from string
Add a child attribute/node, or a Sequence of them.
Adds each of the items in the sequence to this container
Gets the attribute of this name, or null if no attribute of the name exists
Get attribute of name. Aborts fiber if no attribute of that name is found
Gets the String value of the attribute of this name. Since an attribute's value is never null, this will only be null if the attribute is not found.
Get attribute of name, and converts using the given converter. If no attribute of that name is found, or the value fails to be converted, aborts fiber
Get attribute of name, and converts using the given converter. If no attribute of that name is found, or the value fails to be converted, returns default
Sequence of the attributes of this element
Sequence of the child comments, or an empty sequence if there are no comments
Gets the first element of this name, or null if no element of the name exists
Get first element of name. If no element with that name is found, aborts fiber.
Gets the String value of the first element of this name. Since an element's value is never null, this will only be null if the element is not found.
Get the first element of name, and converts using the given converter. If no element of that name is found, or the value fails to be converted, aborts fiber
Get first element of name, and converts using the given converter. If no element of that name is found, or the value fails to be converted, returns default
Sequence of the child elements, or an empty sequence if there are no elements
Gets all elements of the given name, or an empty sequence if no matching elements are found
Gets the first element which fulfils the predicate, or null if no match is found
Gets the first element of this name which also fulfils the predicate, or null if no match is found
Get the name of this element
Set the name of this element. This must be a string.
Sequence of the child nodes
Remove a child attribute or node
Sets value of existing attribute, or creates new attribute. null value removes the attribute
Convert to string representation
Get string content. If content is not a String, returns empty string
Get the value of the element using the converter registered by the provided id. Aborts fiber if no such converter is found, or it fails to convert the value
Gets the value of the element using the converter registered by the provided id. If no such converter is found, or it fails to convert, the provided default is returned
Replace all current content with the given string. If it's not a string, it is converted with a converter registered with id matching type of the object, or .toString
Convert to string in parts and pass to a function. Allows more efficient writing to file streams where avaliable
A utility class for working with XML names and namespaces
Build a name string from it's components
Split a string of format '{namespace}localName' into an XName which has properties to access it's namespace and local name
The local name of this XML name
The namespace of this XML name
Convert to string
A utility class for working with XML namespaces. You will probably never need this
The xml namespace value 'http://www.w3.org/XML/1998/namespace'. It's easier to use XAttribute.xml
The xmlns namespace value 'https://www.w3.org/2000/xmlns/'. It's easier to use XAttribute.xmlns
An XML text node
Create a new XText node with the given string content
Create from string
Convert to string representation
Get the string content
Set the string content. If it's not a string, it is converted with toString
Convert to string in parts and pass to a function. Allows more efficient writing to file streams where avaliable