MCPcopy Create free account
hub / github.com/davisking/dlib / start_element

Method start_element

examples/xml_parser_ex.cpp:50–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 3

valueMethod · 0.80
resetMethod · 0.45
move_nextMethod · 0.45

Tested by

no test coverage detected