This commit is contained in:
@ -77,6 +77,7 @@ impl Risdok {
|
||||
|
||||
pub(crate) fn from_str(xml: &str, builder: &mut LawBuilder) -> Result<bool, Error> {
|
||||
let doc = roxmltree::Document::parse(xml)?;
|
||||
trace!("{doc:?}");
|
||||
let root = doc.root();
|
||||
assert_eq!(root.children().count(), 1);
|
||||
Ok(Self::parse(root.children().next().unwrap(), builder))
|
||||
@ -171,6 +172,7 @@ impl Ziffernliste {
|
||||
}
|
||||
|
||||
pub(crate) fn parse(c: &mut Peekable<Children>) -> Self {
|
||||
trace!("Parsing Ziffernliste...");
|
||||
let n = c.next().unwrap();
|
||||
|
||||
assert!(Self::test(&n));
|
||||
|
Reference in New Issue
Block a user