Skip to main content

Module raw_xml

Module raw_xml 

Source
Expand description

Raw XML capture utilities for preserving unknown elements during round-trip.

Functionsยง

capture_element
Capture a full XML subtree (from after the start tag through the matching end tag) and return it as raw bytes. The returned bytes include the start tag, all children, and the end tag.
capture_empty_element
Capture an empty (self-closing) element as raw bytes.