summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 6850589..ff5aaa9 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -4505,6 +4505,14 @@ namespace pugi
create();
}
+ void xml_document::reset(const xml_document& proto)
+ {
+ reset();
+
+ for (xml_node cur = proto.first_child(); cur; cur = cur.next_sibling())
+ append_copy(cur);
+ }
+
void xml_document::create()
{
// initialize sentinel page