Skip to main content

Module xml

Module xml 

Source
Expand description

Bounded XML represented by a flat, ordered stream of typed nodes. No DOM recursion, DTD, external entities, raw XML action or configuration store.

Structs§

Attribute
Binding
Document

Enums§

Node

Constants§

MAX_ATTRIBUTES
MAX_ATTRIBUTE_BYTES
MAX_DEPTH
MAX_NAMESPACES
MAX_NAME_BYTES
MAX_NODES
MAX_RETAINED_BYTES
MAX_TEXT_BYTES
MAX_URI_BYTES

Functions§

children
Immediate child elements of a protocol envelope; non-whitespace mixed text is refused here, while configuration fragments preserve their mixed content.
element
embedded
Render a typed fragment inside a namespaced wrapper. Prefix selection cannot be redirected by configuration bindings or QName-valued attribute content.
end_index
inner
Detach configuration content while carrying all active namespace bindings, including bindings used only by QName-valued text or attributes.
is_element
parse
parse_fragment
Parse handler-supplied XML content (zero or more sibling elements and text) with the same bounds as a wire message. The text is markup the handler wrote; it is parsed, never spliced, so a fragment cannot close the envelope it is placed in or declare a DTD.
parse_fragment_in
parse_fragment where unprefixed elements without their own xmlns belong to default_namespace — for content whose schema is the envelope’s own, such as the RFC 6241 <error-info> elements (session-id, bad-element, …).
qualified
render_fragment
Render a detached fragment back to XML text. Each top-level element declares the bindings that were in scope where the fragment was taken, so the text stands alone.
text