Mercurial > minori
comparison dep/pugixml/docs/samples/save_stream.cpp @ 57:3c802806b74a
*: merge
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 28 Sep 2023 13:09:11 -0400 |
parents | d10b6c6b432e |
children |
comparison
equal
deleted
inserted
replaced
56:6ff7aabeb9d7 | 57:3c802806b74a |
---|---|
1 #include "pugixml.hpp" | |
2 | |
3 #include <iostream> | |
4 | |
5 int main() | |
6 { | |
7 // get a test document | |
8 pugi::xml_document doc; | |
9 doc.load_string("<foo bar='baz'><call>hey</call></foo>"); | |
10 | |
11 // tag::code[] | |
12 // save document to standard output | |
13 std::cout << "Document:\n"; | |
14 doc.save(std::cout); | |
15 // end::code[] | |
16 } | |
17 | |
18 // vim:et |