| 22 | } |
| 23 | |
| 24 | void xml_node::clear() |
| 25 | { |
| 26 | std::vector<xml_node*>::iterator it = nodes_tmp_.begin(); |
| 27 | for (; it != nodes_tmp_.end(); ++it) { |
| 28 | delete *it; |
| 29 | } |
| 30 | nodes_tmp_.clear(); |
| 31 | |
| 32 | std::vector<xml_attr*>::iterator it2 = attrs_tmp_.begin(); |
| 33 | for (; it2 != attrs_tmp_.end(); ++it2) { |
| 34 | delete *it2; |
| 35 | } |
| 36 | attrs_tmp_.clear(); |
| 37 | } |
| 38 | |
| 39 | xml& xml_node::get_xml() const |
| 40 | { |
no test coverage detected