From 3f2480a08cc7335dda1c50af7f018a5a4c46d49d Mon Sep 17 00:00:00 2001 From: Nick Shipp Date: Fri, 2 Jun 2017 22:49:08 -0400 Subject: Fix namespace tag name --- src/lib.rs | 7 +++++-- src/page.rs | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index c836159..593ad27 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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()?; }, -- cgit v1.2.3-70-g09d2