| 3620 | } |
| 3621 | |
| 3622 | inline bool has_declaration(const xml_node& node) |
| 3623 | { |
| 3624 | for (xml_node child = node.first_child(); child; child = child.next_sibling()) |
| 3625 | { |
| 3626 | xml_node_type type = child.type(); |
| 3627 | |
| 3628 | if (type == node_declaration) |
| 3629 | return true; |
| 3630 | if (type == node_element) |
| 3631 | return false; |
| 3632 | } |
| 3633 | |
| 3634 | return false; |
| 3635 | } |
| 3636 | |
| 3637 | inline bool allow_insert_child(xml_node_type parent, xml_node_type child) |
| 3638 | { |
no test coverage detected