pub fn scan_string( rng: &mut Relaxng, xml: &str, ) -> Result<Vec<Pattern>, ScanError>
Scan an already-parsed RelaxNG XML root in-memory. Useful for unit tests that pass small RNG fragments inline.