diff options
author | Nick Shipp <nick@shipp.ninja> | 2017-06-02 22:49:08 -0400 |
---|---|---|
committer | Nick Shipp <nick@shipp.ninja> | 2017-06-02 22:49:08 -0400 |
commit | 3f2480a08cc7335dda1c50af7f018a5a4c46d49d (patch) | |
tree | 83850c2fa734d6cda164538bfbfec92bc9abc56d /src | |
parent | 30bd9159921998288c623b0e7e357830c5d62bfb (diff) |
Fix namespace tag name
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()?; }, |