| 522 | } |
| 523 | |
| 524 | void XMLParser::skip_section() { |
| 525 | // skip if this element is empty anyway. |
| 526 | if (is_empty()) { |
| 527 | return; |
| 528 | } |
| 529 | |
| 530 | // read until we've reached the last element in this section |
| 531 | int tagcount = 1; |
| 532 | |
| 533 | while (tagcount && read() == OK) { |
| 534 | if (get_node_type() == XMLParser::NODE_ELEMENT && |
| 535 | !is_empty()) { |
| 536 | ++tagcount; |
| 537 | } else if (get_node_type() == XMLParser::NODE_ELEMENT_END) { |
| 538 | --tagcount; |
| 539 | } |
| 540 | } |
| 541 | } |
| 542 | |
| 543 | void XMLParser::close() { |
| 544 | if (data_copy) { |
no outgoing calls
no test coverage detected