aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Shipp <nick@shipp.ninja>2017-06-02 22:49:08 -0400
committerNick Shipp <nick@shipp.ninja>2017-06-02 22:49:08 -0400
commit3f2480a08cc7335dda1c50af7f018a5a4c46d49d (patch)
tree83850c2fa734d6cda164538bfbfec92bc9abc56d /src
parent30bd9159921998288c623b0e7e357830c5d62bfb (diff)
Fix namespace tag name
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs7
-rw-r--r--src/page.rs2
2 files changed, 6 insertions, 3 deletions
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()?;
},