| 48 | } |
| 49 | |
| 50 | virtual void start_element ( |
| 51 | const unsigned long line_number, |
| 52 | const std::string& name, |
| 53 | const dlib::attribute_list& atts |
| 54 | ) |
| 55 | { |
| 56 | cout << "on line " << line_number << " we hit the <" << name << "> tag" << endl; |
| 57 | |
| 58 | // print all the tag's attributes |
| 59 | atts.reset(); |
| 60 | while (atts.move_next()) |
| 61 | { |
| 62 | cout << "\tattribute: " << atts.element().key() << " = " << atts.element().value() << endl; |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | virtual void end_element ( |
| 67 | const unsigned long line_number, |