blob: e19694699535124352386be9c1b2defd16e34b83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#include "pugixml.hpp"
#include <iostream>
int main()
{
pugi::xml_document doc;
doc.load_string("<foo bar='baz'><call>hey</call></foo>");
doc.save(std::cout);
std::cout << std::endl;
doc.save(std::cout, "--");
std::cout << std::endl;
doc.save(std::cout, "\t", pugi::format_default & ~pugi::format_indent);
std::cout << std::endl;
doc.save(std::cout, "\t", pugi::format_raw);
std::cout << std::endl << std::endl;
doc.save(std::cout, "\t", pugi::format_raw | pugi::format_no_declaration);
std::cout << std::endl;
}
|