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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>pugixml: pugi::xml_document Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6-NO -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li id="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul></div>
<div class="nav">
<a class="el" href="namespacepugi.html">pugi</a>::<a class="el" href="classpugi_1_1xml__document.html">xml_document</a></div>
<h1>pugi::xml_document Class Reference</h1><!-- doxytag: class="pugi::xml_document" --><!-- doxytag: inherits="pugi::xml_node" -->Inheritance diagram for pugi::xml_document:<p><center><img src="classpugi_1_1xml__document__inherit__graph.png" border="0" usemap="#pugi_1_1xml__document__inherit__map" alt="Inheritance graph"></center>
<map name="pugi_1_1xml__document__inherit__map">
<area href="classpugi_1_1xml__node.html" shape="rect" coords="20,5,132,32" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for pugi::xml_document:<p><center><img src="classpugi_1_1xml__document__coll__graph.png" border="0" usemap="#pugi_1_1xml__document__coll__map" alt="Collaboration graph"></center>
<map name="pugi_1_1xml__document__coll__map">
<area href="classpugi_1_1xml__node.html" shape="rect" coords="15,96,127,123" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classpugi_1_1xml__document-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
Document class (DOM tree root).
<p>
This class has noncopyable semantics (private copy ctor/assignment operator).
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8db801c1d42eaa9073d14dfafda84f37"></a><!-- doxytag: member="pugi::xml_document::xml_document" ref="8db801c1d42eaa9073d14dfafda84f37" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#8db801c1d42eaa9073d14dfafda84f37">xml_document</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Default ctor, makes empty document. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16c086e679286271b0ccd4541d1c1290"></a><!-- doxytag: member="pugi::xml_document::~xml_document" ref="16c086e679286271b0ccd4541d1c1290" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#16c086e679286271b0ccd4541d1c1290">~xml_document</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Dtor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#6be61931780afe63469711d7ef627832">load</a> (std::basic_istream< char, std::char_traits< char > > &stream, unsigned int options=<a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>, <a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> encoding=encoding_auto)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Load document from stream. <a href="#6be61931780afe63469711d7ef627832"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#7bea1b385fd40ad2b193655427d68145">load</a> (std::basic_istream< wchar_t, std::char_traits< wchar_t > > &stream, unsigned int options=<a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Load document from stream. <a href="#7bea1b385fd40ad2b193655427d68145"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#f155720fa4a736acd8a30310f895f67d">load</a> (const <a class="el" href="namespacepugi.html#b1b14d3e95e40b2a55befefb0b9a04aa">char_t</a> *contents, unsigned int options=<a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Load document from string. <a href="#f155720fa4a736acd8a30310f895f67d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PUGIXML_DEPRECATED <a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#a412a8bd194e7e4bdcaf61baf5b7a98b">parse</a> (char *xmlstr, unsigned int options=<a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parse the given XML string in-situ. <a href="#a412a8bd194e7e4bdcaf61baf5b7a98b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PUGIXML_DEPRECATED <a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#2d226bc068b1becdf992e0c0caa1c94b">parse</a> (const <a class="el" href="structpugi_1_1transfer__ownership__tag.html">transfer_ownership_tag</a> &, char *xmlstr, unsigned int options=<a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parse the given XML string in-situ (gains ownership). <a href="#2d226bc068b1becdf992e0c0caa1c94b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#9b9054284ae2f14dd27e20106ff7e630">load_file</a> (const char *name, unsigned int options=<a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>, <a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> encoding=encoding_auto)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Load document from file. <a href="#9b9054284ae2f14dd27e20106ff7e630"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#fccd56ee382298c3b1281b1004e7e4c9">load_buffer</a> (const void *contents, size_t size, unsigned int options=<a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>, <a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> encoding=encoding_auto)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Load document from buffer. <a href="#fccd56ee382298c3b1281b1004e7e4c9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#c5d4b87682abc59e452008f677c4b5cd">load_buffer_inplace</a> (void *contents, size_t size, unsigned int options=<a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>, <a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> encoding=encoding_auto)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Load document from buffer in-situ. <a href="#c5d4b87682abc59e452008f677c4b5cd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#9d2ba340fa4455c20c15c3000a032b41">load_buffer_inplace_own</a> (void *contents, size_t size, unsigned int options=<a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a>, <a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> encoding=encoding_auto)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Load document from buffer in-situ (gains buffer ownership). <a href="#9d2ba340fa4455c20c15c3000a032b41"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#4603745d305c65fafd811d995cf7fba5">save</a> (<a class="el" href="classpugi_1_1xml__writer.html">xml_writer</a> &writer, const <a class="el" href="namespacepugi.html#b1b14d3e95e40b2a55befefb0b9a04aa">char_t</a> *indent=PUGIXML_TEXT("\t"), unsigned int flags=<a class="el" href="namespacepugi.html#325f48a35abbaeacdfd8b7fc9ed1713c">format_default</a>, <a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> encoding=encoding_auto) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Save XML to writer. <a href="#4603745d305c65fafd811d995cf7fba5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#bb5200ba10cf66c8ef6c3ca97f4a18f6">save</a> (std::basic_ostream< char, std::char_traits< char > > &stream, const <a class="el" href="namespacepugi.html#b1b14d3e95e40b2a55befefb0b9a04aa">char_t</a> *indent=PUGIXML_TEXT("\t"), unsigned int flags=<a class="el" href="namespacepugi.html#325f48a35abbaeacdfd8b7fc9ed1713c">format_default</a>, <a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> encoding=encoding_auto) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Save XML to stream. <a href="#bb5200ba10cf66c8ef6c3ca97f4a18f6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#37649bea142707c2e9a76df3518117bc">save</a> (std::basic_ostream< wchar_t, std::char_traits< wchar_t > > &stream, const <a class="el" href="namespacepugi.html#b1b14d3e95e40b2a55befefb0b9a04aa">char_t</a> *indent=PUGIXML_TEXT("\t"), unsigned int flags=<a class="el" href="namespacepugi.html#325f48a35abbaeacdfd8b7fc9ed1713c">format_default</a>) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Save XML to stream. <a href="#37649bea142707c2e9a76df3518117bc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#4fe6b295b0584876b4fba63b95321dfd">save_file</a> (const char *name, const <a class="el" href="namespacepugi.html#b1b14d3e95e40b2a55befefb0b9a04aa">char_t</a> *indent=PUGIXML_TEXT("\t"), unsigned int flags=<a class="el" href="namespacepugi.html#325f48a35abbaeacdfd8b7fc9ed1713c">format_default</a>, <a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> encoding=encoding_auto) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Save XML to file. <a href="#4fe6b295b0584876b4fba63b95321dfd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0c7be6cf0334ffd15f3c1b41bcc788d4"></a><!-- doxytag: member="pugi::xml_document::precompute_document_order" ref="0c7be6cf0334ffd15f3c1b41bcc788d4" args="()" -->
PUGIXML_DEPRECATED void </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html#0c7be6cf0334ffd15f3c1b41bcc788d4">precompute_document_order</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Compute document order for the whole tree Sometimes this makes evaluation of XPath queries faster. <br></td></tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="6be61931780afe63469711d7ef627832"></a><!-- doxytag: member="pugi::xml_document::load" ref="6be61931780afe63469711d7ef627832" args="(std::basic_istream< char, std::char_traits< char > > &stream, unsigned int options=parse_default, encoding_t encoding=encoding_auto)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> pugi::xml_document::load </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">std::basic_istream< char, std::char_traits< char > > & </td>
<td class="mdname" nowrap> <em>stream</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>options</em> = <code><a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a></code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> </td>
<td class="mdname" nowrap> <em>encoding</em> = <code>encoding_auto</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Load document from stream.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>stream</em> </td><td>- stream with xml data </td></tr>
<tr><td valign="top"></td><td valign="top"><em>options</em> </td><td>- parsing options </td></tr>
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>- source data encoding </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>parsing result </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="7bea1b385fd40ad2b193655427d68145"></a><!-- doxytag: member="pugi::xml_document::load" ref="7bea1b385fd40ad2b193655427d68145" args="(std::basic_istream< wchar_t, std::char_traits< wchar_t > > &stream, unsigned int options=parse_default)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> pugi::xml_document::load </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">std::basic_istream< wchar_t, std::char_traits< wchar_t > > & </td>
<td class="mdname" nowrap> <em>stream</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>options</em> = <code><a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a></code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Load document from stream.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>stream</em> </td><td>- stream with xml data </td></tr>
<tr><td valign="top"></td><td valign="top"><em>options</em> </td><td>- parsing options </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>parsing result </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="f155720fa4a736acd8a30310f895f67d"></a><!-- doxytag: member="pugi::xml_document::load" ref="f155720fa4a736acd8a30310f895f67d" args="(const char_t *contents, unsigned int options=parse_default)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> pugi::xml_document::load </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="namespacepugi.html#b1b14d3e95e40b2a55befefb0b9a04aa">char_t</a> * </td>
<td class="mdname" nowrap> <em>contents</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>options</em> = <code><a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a></code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Load document from string.
<p>
String has to be zero-terminated. No encoding conversions are applied.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>- input string </td></tr>
<tr><td valign="top"></td><td valign="top"><em>options</em> </td><td>- parsing options </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>parsing result </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="a412a8bd194e7e4bdcaf61baf5b7a98b"></a><!-- doxytag: member="pugi::xml_document::parse" ref="a412a8bd194e7e4bdcaf61baf5b7a98b" args="(char *xmlstr, unsigned int options=parse_default)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">PUGIXML_DEPRECATED <a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> pugi::xml_document::parse </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">char * </td>
<td class="mdname" nowrap> <em>xmlstr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>options</em> = <code><a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a></code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Parse the given XML string in-situ.
<p>
The string is modified; you should ensure that string data will persist throughout the document's lifetime. Although, document does not gain ownership over the string, so you should free the memory occupied by it manually.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>xmlstr</em> </td><td>- readwrite string with xml data </td></tr>
<tr><td valign="top"></td><td valign="top"><em>options</em> </td><td>- parsing options </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>parsing result</dd></dl>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000012">Deprecated:</a></b></dt><dd>This function is deprecated and will be removed in future versions; use <a class="el" href="classpugi_1_1xml__document.html#c5d4b87682abc59e452008f677c4b5cd">xml_document::load_buffer_inplace</a> instead </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="2d226bc068b1becdf992e0c0caa1c94b"></a><!-- doxytag: member="pugi::xml_document::parse" ref="2d226bc068b1becdf992e0c0caa1c94b" args="(const transfer_ownership_tag &, char *xmlstr, unsigned int options=parse_default)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">PUGIXML_DEPRECATED <a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> pugi::xml_document::parse </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="structpugi_1_1transfer__ownership__tag.html">transfer_ownership_tag</a> & </td>
<td class="mdname" nowrap>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>char * </td>
<td class="mdname" nowrap> <em>xmlstr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>options</em> = <code><a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a></code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Parse the given XML string in-situ (gains ownership).
<p>
The string is modified; document gains ownership over the string, so you don't have to worry about it's lifetime. Call example: doc.parse(transfer_ownership_tag(), string, options);<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>xmlstr</em> </td><td>- readwrite string with xml data </td></tr>
<tr><td valign="top"></td><td valign="top"><em>options</em> </td><td>- parsing options </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>parsing result</dd></dl>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000013">Deprecated:</a></b></dt><dd>This function is deprecated and will be removed in future versions; use <a class="el" href="classpugi_1_1xml__document.html#9d2ba340fa4455c20c15c3000a032b41">xml_document::load_buffer_inplace_own</a> instead </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="9b9054284ae2f14dd27e20106ff7e630"></a><!-- doxytag: member="pugi::xml_document::load_file" ref="9b9054284ae2f14dd27e20106ff7e630" args="(const char *name, unsigned int options=parse_default, encoding_t encoding=encoding_auto)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> pugi::xml_document::load_file </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const char * </td>
<td class="mdname" nowrap> <em>name</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>options</em> = <code><a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a></code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> </td>
<td class="mdname" nowrap> <em>encoding</em> = <code>encoding_auto</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Load document from file.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>- file name </td></tr>
<tr><td valign="top"></td><td valign="top"><em>options</em> </td><td>- parsing options </td></tr>
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>- source data encoding </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>parsing result </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="fccd56ee382298c3b1281b1004e7e4c9"></a><!-- doxytag: member="pugi::xml_document::load_buffer" ref="fccd56ee382298c3b1281b1004e7e4c9" args="(const void *contents, size_t size, unsigned int options=parse_default, encoding_t encoding=encoding_auto)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> pugi::xml_document::load_buffer </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const void * </td>
<td class="mdname" nowrap> <em>contents</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>size_t </td>
<td class="mdname" nowrap> <em>size</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>options</em> = <code><a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a></code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> </td>
<td class="mdname" nowrap> <em>encoding</em> = <code>encoding_auto</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Load document from buffer.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>- buffer contents </td></tr>
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>- buffer size in bytes </td></tr>
<tr><td valign="top"></td><td valign="top"><em>options</em> </td><td>- parsing options </td></tr>
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>- source data encoding </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>parsing result </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="c5d4b87682abc59e452008f677c4b5cd"></a><!-- doxytag: member="pugi::xml_document::load_buffer_inplace" ref="c5d4b87682abc59e452008f677c4b5cd" args="(void *contents, size_t size, unsigned int options=parse_default, encoding_t encoding=encoding_auto)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> pugi::xml_document::load_buffer_inplace </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void * </td>
<td class="mdname" nowrap> <em>contents</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>size_t </td>
<td class="mdname" nowrap> <em>size</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>options</em> = <code><a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a></code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> </td>
<td class="mdname" nowrap> <em>encoding</em> = <code>encoding_auto</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Load document from buffer in-situ.
<p>
The buffer is modified; you should ensure that buffer data will persist throughout the document's lifetime. Document does not gain ownership over the buffer, so you should free the buffer memory manually.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>- buffer contents </td></tr>
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>- buffer size in bytes </td></tr>
<tr><td valign="top"></td><td valign="top"><em>options</em> </td><td>- parsing options </td></tr>
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>- source data encoding </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>parsing result </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="9d2ba340fa4455c20c15c3000a032b41"></a><!-- doxytag: member="pugi::xml_document::load_buffer_inplace_own" ref="9d2ba340fa4455c20c15c3000a032b41" args="(void *contents, size_t size, unsigned int options=parse_default, encoding_t encoding=encoding_auto)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> pugi::xml_document::load_buffer_inplace_own </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">void * </td>
<td class="mdname" nowrap> <em>contents</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>size_t </td>
<td class="mdname" nowrap> <em>size</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>options</em> = <code><a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a></code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> </td>
<td class="mdname" nowrap> <em>encoding</em> = <code>encoding_auto</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Load document from buffer in-situ (gains buffer ownership).
<p>
The buffer is modified; you should ensure that buffer data will persist throughout the document's lifetime. Document gains ownership over the buffer, so you should allocate the buffer with pugixml allocation function.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>contents</em> </td><td>- buffer contents </td></tr>
<tr><td valign="top"></td><td valign="top"><em>size</em> </td><td>- buffer size in bytes </td></tr>
<tr><td valign="top"></td><td valign="top"><em>options</em> </td><td>- parsing options </td></tr>
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>- source data encoding </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>parsing result </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="4603745d305c65fafd811d995cf7fba5"></a><!-- doxytag: member="pugi::xml_document::save" ref="4603745d305c65fafd811d995cf7fba5" args="(xml_writer &writer, const char_t *indent=PUGIXML_TEXT("\t"), unsigned int flags=format_default, encoding_t encoding=encoding_auto) const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void pugi::xml_document::save </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="classpugi_1_1xml__writer.html">xml_writer</a> & </td>
<td class="mdname" nowrap> <em>writer</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const <a class="el" href="namespacepugi.html#b1b14d3e95e40b2a55befefb0b9a04aa">char_t</a> * </td>
<td class="mdname" nowrap> <em>indent</em> = <code>PUGIXML_TEXT("\t")</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>flags</em> = <code><a class="el" href="namespacepugi.html#325f48a35abbaeacdfd8b7fc9ed1713c">format_default</a></code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> </td>
<td class="mdname" nowrap> <em>encoding</em> = <code>encoding_auto</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Save XML to writer.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>writer</em> </td><td>- writer object </td></tr>
<tr><td valign="top"></td><td valign="top"><em>indent</em> </td><td>- indentation string </td></tr>
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>- formatting flags </td></tr>
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>- encoding used for writing </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="bb5200ba10cf66c8ef6c3ca97f4a18f6"></a><!-- doxytag: member="pugi::xml_document::save" ref="bb5200ba10cf66c8ef6c3ca97f4a18f6" args="(std::basic_ostream< char, std::char_traits< char > > &stream, const char_t *indent=PUGIXML_TEXT("\t"), unsigned int flags=format_default, encoding_t encoding=encoding_auto) const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void pugi::xml_document::save </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">std::basic_ostream< char, std::char_traits< char > > & </td>
<td class="mdname" nowrap> <em>stream</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const <a class="el" href="namespacepugi.html#b1b14d3e95e40b2a55befefb0b9a04aa">char_t</a> * </td>
<td class="mdname" nowrap> <em>indent</em> = <code>PUGIXML_TEXT("\t")</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>flags</em> = <code><a class="el" href="namespacepugi.html#325f48a35abbaeacdfd8b7fc9ed1713c">format_default</a></code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> </td>
<td class="mdname" nowrap> <em>encoding</em> = <code>encoding_auto</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Save XML to stream.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>stream</em> </td><td>- output stream </td></tr>
<tr><td valign="top"></td><td valign="top"><em>indent</em> </td><td>- indentation string </td></tr>
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>- formatting flags </td></tr>
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>- encoding used for writing </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="37649bea142707c2e9a76df3518117bc"></a><!-- doxytag: member="pugi::xml_document::save" ref="37649bea142707c2e9a76df3518117bc" args="(std::basic_ostream< wchar_t, std::char_traits< wchar_t > > &stream, const char_t *indent=PUGIXML_TEXT("\t"), unsigned int flags=format_default) const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void pugi::xml_document::save </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">std::basic_ostream< wchar_t, std::char_traits< wchar_t > > & </td>
<td class="mdname" nowrap> <em>stream</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const <a class="el" href="namespacepugi.html#b1b14d3e95e40b2a55befefb0b9a04aa">char_t</a> * </td>
<td class="mdname" nowrap> <em>indent</em> = <code>PUGIXML_TEXT("\t")</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>flags</em> = <code><a class="el" href="namespacepugi.html#325f48a35abbaeacdfd8b7fc9ed1713c">format_default</a></code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Save XML to stream.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>stream</em> </td><td>- output stream </td></tr>
<tr><td valign="top"></td><td valign="top"><em>indent</em> </td><td>- indentation string </td></tr>
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>- formatting flags </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="4fe6b295b0584876b4fba63b95321dfd"></a><!-- doxytag: member="pugi::xml_document::save_file" ref="4fe6b295b0584876b4fba63b95321dfd" args="(const char *name, const char_t *indent=PUGIXML_TEXT("\t"), unsigned int flags=format_default, encoding_t encoding=encoding_auto) const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool pugi::xml_document::save_file </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const char * </td>
<td class="mdname" nowrap> <em>name</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const <a class="el" href="namespacepugi.html#b1b14d3e95e40b2a55befefb0b9a04aa">char_t</a> * </td>
<td class="mdname" nowrap> <em>indent</em> = <code>PUGIXML_TEXT("\t")</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>unsigned int </td>
<td class="mdname" nowrap> <em>flags</em> = <code><a class="el" href="namespacepugi.html#325f48a35abbaeacdfd8b7fc9ed1713c">format_default</a></code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> </td>
<td class="mdname" nowrap> <em>encoding</em> = <code>encoding_auto</code></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Save XML to file.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>- file name </td></tr>
<tr><td valign="top"></td><td valign="top"><em>indent</em> </td><td>- indentation string </td></tr>
<tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>- formatting flags </td></tr>
<tr><td valign="top"></td><td valign="top"><em>encoding</em> </td><td>- encoding used for writing </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>success flag </dd></dl>
</td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Tue May 25 23:22:41 2010 for pugixml by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
</body>
</html>
|