pub const XML_PARSE_NO_TREE: i32 = _; // 1_073_741_824i32Expand description
Deliver SAX events without building a document tree. A rusty_xml extension, not a libxml2 flag.
Every entry point here materialises the whole document, including the ones
whose job is streaming: xml_sax_parse_memory built a full tree and then
discarded it, and xml_reader_for_memory builds a tree and walks it with a
cursor. A consumer that only wants text – an indexer, a document converter
– paid for a DOM it never touched.
With this set, character data, CDATA, comments, processing instructions and
attributes create no nodes. The SAX event stream is unchanged and complete;
the returned XmlDoc holds only the element skeleton and should be
ignored.