extern crate htmlstream; use htmlstream::*; fn main() { let html = "this is a test: The Rust Programing Language"; for (pos, tag) in tag_iter(html) { println!("{:?} {:?}", pos, tag); for (pos, attr) in attr_iter(&tag.attributes) { println!(" {:?} {:?}", pos, attr); } } }