Crate roxmltree

Source
Expand description

Represent an XML document as a read-only tree.

The root point of the documentations is Document::parse.

You can find more details in the README and the parsing doc.

The tree structure itself is a heavily modified https://github.com/causal-agent/ego-tree License: ISC.

ModulesΒ§

parse πŸ”’
tokenizer πŸ”’

StructsΒ§

Attribute
An attribute.
AttributeData πŸ”’
Attributes
Iterator over a node’s attributes
AxisIter
Iterator over specified axis.
Children
Iterator over children.
Descendants
Iterator over a node and its descendants.
Document
An XML tree container.
ExpandedName
An expanded name.
ExpandedNameIndexed πŸ”’
Namespace
A namespace.
NamespaceIdx πŸ”’
NamespaceIter
Iterator over the namespaces attached to a node.
Namespaces πŸ”’
Node
A node in a document.
NodeData πŸ”’
NodeId
A node ID stored as u32.
PI
A processing instruction.
ParsingOptions
Parsing options.
ShortRange πŸ”’
A short range.
TextPos
Position in text.

EnumsΒ§

Error
A list of all possible errors.
NodeKind πŸ”’
NodeType
A list of supported node types.
StringStorage
A string storage.

ConstantsΒ§

NS_XMLNS_URI
The http://www.w3.org/2000/xmlns/ URI.
NS_XML_PREFIX πŸ”’
The prefix β€˜xml’, which is by definition bound to NS_XML_URI
NS_XML_URI
The http://www.w3.org/XML/1998/namespace URI.
XMLNS πŸ”’
The string β€˜xmlns’, which is used to declare new namespaces

Type AliasesΒ§

OwnedSharedString πŸ”’