diff options
Diffstat (limited to 'docs/samples/save_subtree.cpp')
-rw-r--r-- | docs/samples/save_subtree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/samples/save_subtree.cpp b/docs/samples/save_subtree.cpp index 0091b3d..a94e10a 100644 --- a/docs/samples/save_subtree.cpp +++ b/docs/samples/save_subtree.cpp @@ -7,7 +7,7 @@ int main() //[code_save_subtree // get a test document pugi::xml_document doc; - doc.load("<foo bar='baz'><call>hey</call></foo>"); + doc.load_string("<foo bar='baz'><call>hey</call></foo>"); // print document to standard output (prints <?xml version="1.0"?><foo bar="baz"><call>hey</call></foo>) doc.save(std::cout, "", pugi::format_raw); |