pub fn with_last_error<F, R>(f: F) -> Rwhere F: FnOnce(Option<&_xmlError>) -> R,
Get a reference to the last error (for structured error callback).