diff options
Diffstat (limited to 'src/lib/util/xmlfile.h')
-rw-r--r-- | src/lib/util/xmlfile.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/util/xmlfile.h b/src/lib/util/xmlfile.h index 5c4672373d3..5e55dbf310e 100644 --- a/src/lib/util/xmlfile.h +++ b/src/lib/util/xmlfile.h @@ -118,6 +118,9 @@ public: // either return an existing child node or create one if it doesn't exist data_node *get_or_add_child(const char *name, const char *value); + // recursively copy as child of another node + data_node *copy_into(data_node &parent) const; + // delete a node and its children void delete_node(); @@ -189,6 +192,8 @@ private: attribute_node *get_attribute(const char *attribute); attribute_node const *get_attribute(const char *attribute) const; + void free_children(); + data_node * m_next; data_node * m_first_child; @@ -208,7 +213,7 @@ public: ~file(); - // create a new empty xml file object + // create a new, empty XML file static ptr create(); // parse an XML file into its nodes |