summaryrefslogtreecommitdiff
path: root/src/pugixml.hpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-10-31 07:33:01 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-10-31 07:33:01 +0000
commit4920e4fec93b801410b85c894c292a8e982661ba (patch)
tree4b9d91d29875dc2ab8f09b214372a804f9c04acb /src/pugixml.hpp
parenta73424aeffa5bbdf36c610dae96cd28dc81f4e66 (diff)
Added xml_document::reset() function with document parameter
git-svn-id: http://pugixml.googlecode.com/svn/trunk@786 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r--src/pugixml.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index ce4abe2..bb08064 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -740,6 +740,9 @@ namespace pugi
// Removes all nodes, leaving the empty document
void reset();
+ // Removes all nodes, then copies the entire contents of the specified document
+ void reset(const xml_document& proto);
+
#ifndef PUGIXML_NO_STL
// Load document from stream.
xml_parse_result load(std::basic_istream<char, std::char_traits<char> >& stream, unsigned int options = parse_default, xml_encoding encoding = encoding_auto);