Skip to main content

MAX_DEPTH

Constant MAX_DEPTH 

Source
pub const MAX_DEPTH: usize = 64;
Expand description

The deepest the XML may nest its elements. The parser underneath, roxmltree, descends the tree on the stack, so a file nesting far enough would exhaust it, a crash where an error is due: the nesting is counted before the text is parsed, as the .ork reader’s is (hpr_io::ork). The sample files nest at most 9 deep; 64 is as deep as the .ork reader allows.