Skip to main content

Crate crossfoot_xml

Crate crossfoot_xml 

Source
Expand description

crossfoot-xml: a namespace-aware XML 1.0 parser producing an immutable arena DOM.

The DOM is Send + Sync, keeps byte offsets for every node (line/column on demand), resolves xml:base, xml:lang and QName-valued content, and indexes id attributes. It is the one XML representation every Crossfoot component reads.

Structs§

Attribute
Children
Document
Immutable parsed document.
Node
A borrowed handle on a node.
NodeId
ParseOptions
QName
An expanded name. Equality and hashing ignore the prefix.
XmlError
A well-formedness or encoding error.

Enums§

NodeKind

Constants§

XMLNS_NS
XML_NS

Functions§

escape_attr
escape_text
has_scheme
is_name
is_name_char
is_name_start
is_ncname
parse
Parse bytes (encoding detected from BOM / declaration).
parse_str
resolve_uri
Resolve a URI reference against a base (RFC 3986 §5.2), tolerant of Windows-ish and opaque bases. Works for http(s):, file: and plain relative paths.

Type Aliases§

Atom
Interned-ish string. Plain Arc<str>; equality is by content.