pub struct Options {
pub limits: Limits,
pub namespaces: bool,
pub max_entity_depth: u32,
pub entity_allowance: u64,
pub entity_ratio: u64,
}Expand description
How to parse.
Fields§
§limits: LimitsThe input’s size, how deep elements nest
(DEFAULT_MAX_DEPTH), and the steps a parse may take (one for
each node, attribute and entity expansion). Unlimited but for the
depth.
namespaces: boolNamespaces in XML: names are qualified names, and their prefixes resolve. On by default. Off, a name is any XML name, colons and all, in no namespace.
max_entity_depth: u32How deep entity references may nest in the entities they refer
to: 16 by default, and never past ENTITY_DEPTH_CEILING.
entity_allowance: u64Entity expansion, and the attribute defaults the DTD applies to each element, may add this many bytes to any document, 1 MiB by default…
entity_ratio: u64…plus this many for each byte of the document itself, 8 by default. Every expansion counts, of the same entity too, and so does every element a default is applied to.