diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 7 | ||||
-rw-r--r-- | src/page.rs | 2 |
2 files changed, 6 insertions, 3 deletions
@@ -33,8 +33,11 @@ mod tests { let pages = PageIter::new(xml); for page in pages { - assert!(page.namespace < 10000); - //println!("{:#?}", page); + //if page.namespace == 10 { + // println!("{}", page.title); + //} + //assert!(page.namespace < 10000); + println!("{}\n(~END~)", page.revision.text); } } diff --git a/src/page.rs b/src/page.rs index b864640..bd65601 100644 --- a/src/page.rs +++ b/src/page.rs @@ -29,7 +29,7 @@ impl FromXml for Page { let res = element_text(reader); page.title = res?; }, - b"namespace" => { + b"ns" => { let res = element_text(reader); page.namespace = res?.parse()?; }, |