test/
test.rs

1extern crate htmlstream;
2use htmlstream::*;
3
4fn main() {
5    let html = "this is a test: <a href=\"http://rust-lang.org\">The Rust Programing Language</a>";
6    for (pos, tag) in tag_iter(html) {
7        println!("{:?} {:?}", pos, tag);
8        for (pos, attr) in attr_iter(&tag.attributes) {
9            println!("    {:?} {:?}", pos, attr);
10        }
11    }
12}