Expand description
Node structures for XML tree representation.
This module provides the core node types used to represent XML documents
as trees. The design mirrors the Java implementation with BaseNode and
BranchNode, unified into a single NodeInner with different NodeKinds.
Re-exports§
pub use base::BaseNode;pub use branch::BranchNode;
Modules§
Structs§
- Match
Area - Tags nodes in the same matched subtree.
- Match
Type - Match type flags indicating how a branch node matches its base node.
- Matched
Nodes - Container for a set of branch nodes matched to a base node.
- Node
Inner - The inner data of a node in the parse tree.
- XmlComment
- XML comment content.
- XmlElement
- An XML element with a qualified name and attributes.
- XmlText
- XML text content.
Enums§
- Node
Kind - Kind-specific data for nodes.
- XmlContent
- Represents the content of an XML node.
Functions§
- java_
string_ hash - Computes a hash code compatible with Java’s String.hashCode().
- new_
base_ node - Creates a new base node wrapped in NodeRef with properly initialized owner refs.
- new_
branch_ node - Creates a new branch node wrapped in NodeRef.
- new_
node_ ref - Creates a new node reference.
Type Aliases§
- NodeRef
- A reference-counted pointer to a node.
- Weak
Node Ref - A weak reference to a node, used to avoid reference cycles.