aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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()?;
},