Skip to main content

Module document

Module document 

Source
Expand description

Page-based XML document buffer for XPath 2.0 evaluation.

This module implements BufferDocument, a compact, cache-friendly XML document representation built on a flat array of 16-byte Node structs with power-of-2 page addressing.

§Feature gate

The entire module is compiled only when the xsd11 feature is enabled.

Re-exports§

pub use buffer::BufferDocument;
pub use builder::BufferDocumentBuilder;
pub use element_index::ElementIndex;
pub use error::BufferDocumentError;
pub use namespace::NamespaceChain;
pub use namespace::NamespaceNode;
pub use namespace::NamespacePageFactory;
pub use namespace::NsRef;
pub use namespace::NS_PAGE_MASK;
pub use namespace::NS_PAGE_SHIFT;
pub use namespace::NS_PAGE_SIZE;
pub use navigator::BufferDocNavigator;
pub use node::node_ref_from;
pub use node::page_of;
pub use node::slot_of;
pub use node::Node;
pub use node::NodeType;
pub use node::NULL;
pub use node::PAGE_MASK;
pub use node::PAGE_SHIFT;
pub use node::PAGE_SIZE;
pub use page::NodePages;
pub use qname::QNameAtom;
pub use qname::QNameTable;
pub use qname::EMPTY_QNAME;
pub use source_spans::NodeSourceSpans;
pub use strings::StringStore;
pub use type_remap::BindingRemapTable;
pub use type_remap::NodeSchemaBinding;
pub use typed_builder::build_typed_document;
pub use typed_builder::SilentValidationSink;

Modules§

buffer
Top-level BufferDocument struct assembling all storage primitives.
builder
Document builder — core push API and quick-xml adapter.
element_index
Element index by local-name hash for the document buffer.
error
namespace
Namespace chain storage for the document buffer.
navigator
Cursor-based DomNavigator over BufferDocument.
node
page
qname
QName atomization for the document buffer.
source_spans
Per-node source span tracking for the document buffer.
strings
type_remap
Binding remap table for mapping 20-bit node indices to full NodeSchemaBinding values.
typed_builder
Schema-aware document builder.

Structs§

BufferDocumentOptions
Configuration for BufferDocument construction.

Enums§

DocumentKind
Whether the document is a complete XML document or a validation fragment.