Skip to main content

Module core

Module core 

Source
Expand description

XML tree, names, namespaces, and shared error types.

Structs§

Attribute
XML attribute stored on an element.
Document
XML document represented as a typed tree backed by node IDs.
ElementData
Data carried by an XML element node.
NamespaceDeclaration
Namespace declaration attached to an XML element or namespace table.
NamespacePrefix
Prefix used to bind an XML name to a namespace URI.
NamespaceTable
Namespace bindings available while constructing, parsing, or writing XML.
NamespaceUri
Namespace URI associated with a qualified XML name.
Node
Node stored in a document arena.
NodeId
Opaque identifier for a node stored in a document arena.
QName
Namespace-aware XML name.
Span
Location in a source XML document, when known.
XmlError
Structured error used by the XML engine.
XmlPath
Logical path to a node in a document tree.

Enums§

ErrorKind
High-level category for an XML engine error.
NodeKind
Supported XML node kinds in the core tree model.

Constants§

XMLNS_NAMESPACE_URI
XML_NAMESPACE_URI

Functions§

validate_namespace_binding
validate_xml_name
Validates the XML name subset used by this MVP.

Type Aliases§

XmlResult
Convenient result type for core XML operations.