| 3011 | } |
| 3012 | |
| 3013 | inline bool has_declaration(const xml_node& node) |
| 3014 | { |
| 3015 | for (xml_node child = node.first_child(); child; child = child.next_sibling()) |
| 3016 | { |
| 3017 | xml_node_type type = child.type(); |
| 3018 | |
| 3019 | if (type == node_declaration) return true; |
| 3020 | if (type == node_element) return false; |
| 3021 | } |
| 3022 | |
| 3023 | return false; |
| 3024 | } |
| 3025 | |
| 3026 | inline bool allow_insert_child(xml_node_type parent, xml_node_type child) |
| 3027 | { |
no test coverage detected