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
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
|
<!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 Namespace 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 id="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><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="namespaces.html"><span>Namespace List</span></a></li>
<li><a href="namespacemembers.html"><span>Namespace Members</span></a></li>
</ul></div>
<h1>pugi Namespace Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
The PugiXML Parser namespace.
<p>
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xpath__query.html">xpath_query</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A class that holds compiled XPath query and allows to evaluate query result. <a href="classpugi_1_1xpath__query.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__writer.html">xml_writer</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Abstract writer class. <a href="classpugi_1_1xml__writer.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__writer__file.html">xml_writer_file</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classpugi_1_1xml__writer.html">xml_writer</a> implementation for FILE* <a href="classpugi_1_1xml__writer__file.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__writer__stream.html">xml_writer_stream</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classpugi_1_1xml__writer.html">xml_writer</a> implementation for streams <a href="classpugi_1_1xml__writer__stream.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__attribute.html">xml_attribute</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A light-weight wrapper for manipulating attributes in DOM tree. <a href="classpugi_1_1xml__attribute.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__node.html">xml_node</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A light-weight wrapper for manipulating nodes in DOM tree. <a href="classpugi_1_1xml__node.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__node__iterator.html">xml_node_iterator</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Child node iterator. <a href="classpugi_1_1xml__node__iterator.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__attribute__iterator.html">xml_attribute_iterator</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Attribute iterator. <a href="classpugi_1_1xml__attribute__iterator.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__tree__walker.html">xml_tree_walker</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Abstract tree walker class. <a href="classpugi_1_1xml__tree__walker.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structpugi_1_1transfer__ownership__tag.html">transfer_ownership_tag</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Struct used to distinguish parsing with ownership transfer from parsing without it. <a href="structpugi_1_1transfer__ownership__tag.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parser result. <a href="structpugi_1_1xml__parse__result.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xml__document.html">xml_document</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Document class (DOM tree root). <a href="classpugi_1_1xml__document.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xpath__exception.html">xpath_exception</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">XPath exception class. <a href="classpugi_1_1xpath__exception.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xpath__node.html">xpath_node</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">XPath node class. <a href="classpugi_1_1xpath__node.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classpugi_1_1xpath__node__set.html">xpath_node_set</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Not necessarily ordered constant collection of XPath nodes. <a href="classpugi_1_1xpath__node__set.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b1b14d3e95e40b2a55befefb0b9a04aa"></a><!-- doxytag: member="pugi::char_t" ref="b1b14d3e95e40b2a55befefb0b9a04aa" args="" -->
typedef char </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#b1b14d3e95e40b2a55befefb0b9a04aa">char_t</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Character type used for all internal storage and operations; depends on PUGIXML_WCHAR_MODE. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="009e541d184dda0373445df1601a1e96"></a><!-- doxytag: member="pugi::string_t" ref="009e541d184dda0373445df1601a1e96" args="" -->
typedef std::basic_string<<br>
char, std::char_traits< char >,<br>
std::allocator< char > > </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#009e541d184dda0373445df1601a1e96">string_t</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">String type used for operations that work with STL string; depends on PUGIXML_WCHAR_MODE. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void *(* </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#15c8048c4bbfca2ad0ab9fc0b56ea522">allocation_function</a> )(size_t size)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Memory allocation function. <a href="#15c8048c4bbfca2ad0ab9fc0b56ea522"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#a6161e8d6344110788d7ff8a11ca680b">deallocation_function</a> )(void *ptr)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Memory deallocation function. <a href="#a6161e8d6344110788d7ff8a11ca680b"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#137e94a038e4ab0ada6477cf7f6153a9">xml_node_type</a> { <br>
<a class="el" href="namespacepugi.html#137e94a038e4ab0ada6477cf7f6153a9d58c55e810076e076318cc2268191b1f">node_null</a>,
<a class="el" href="namespacepugi.html#137e94a038e4ab0ada6477cf7f6153a9ab42ba83cf941f7297325eade205bf80">node_document</a>,
<a class="el" href="namespacepugi.html#137e94a038e4ab0ada6477cf7f6153a96d223e3a0d8ce8e4ee6f4a2697b8bcd1">node_element</a>,
<a class="el" href="namespacepugi.html#137e94a038e4ab0ada6477cf7f6153a95c0042693a8b8b6b54c191b4403fca21">node_pcdata</a>,
<br>
<a class="el" href="namespacepugi.html#137e94a038e4ab0ada6477cf7f6153a9df13d60a4dfd047be0700e1711aeb1ea">node_cdata</a>,
<a class="el" href="namespacepugi.html#137e94a038e4ab0ada6477cf7f6153a9445fef674a66777dfd28dbd6bab14fed">node_comment</a>,
<a class="el" href="namespacepugi.html#137e94a038e4ab0ada6477cf7f6153a9cd772b12b3d5442b9771151f45134440">node_pi</a>,
<a class="el" href="namespacepugi.html#137e94a038e4ab0ada6477cf7f6153a9ad8024cc4a4afbc68c871f3826a00616">node_declaration</a>
<br>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Tree node classification. <a href="namespacepugi.html#137e94a038e4ab0ada6477cf7f6153a9">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">encoding_t</a> { <br>
<a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52e11b2ef666f03e77b7e764e38d22dc17">encoding_auto</a>,
<a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b5296c73bf345f635f0fbee5f6646fb095e">encoding_utf8</a>,
<a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b5247be6a1d4828e9b284d40894afc27e54">encoding_utf16_le</a>,
<a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b528689b47b8387fc3524334e8d106fda16">encoding_utf16_be</a>,
<br>
<a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52c1fbf60f9cb5db0e9e38fbfdba7afb6a">encoding_utf16</a>,
<a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52c54c474159301358c31d931855987dc6">encoding_utf32_le</a>,
<a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b5255b0b036621ebcfcd5e0e43b8f69f4dc">encoding_utf32_be</a>,
<a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b5246a8f0d9f4c03350f7a831a370d2b032">encoding_utf32</a>,
<br>
<a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52e670d39438f31fe41f1a596739e5c00e">encoding_wchar</a>
<br>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">These flags determine the encoding of input data for XML document. <a href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#51b15030472dcfa64b5c0d2252f8261d">xpath_type_t</a> { <br>
<a class="el" href="namespacepugi.html#51b15030472dcfa64b5c0d2252f8261daa768b8302ccc893f3cc9ba799360a77">xpath_type_none</a>,
<a class="el" href="namespacepugi.html#51b15030472dcfa64b5c0d2252f8261df5613748204e2e4861524e7d63a699c9">xpath_type_node_set</a>,
<a class="el" href="namespacepugi.html#51b15030472dcfa64b5c0d2252f8261d02959f74f4fe93d71a1e109a45f23825">xpath_type_number</a>,
<a class="el" href="namespacepugi.html#51b15030472dcfa64b5c0d2252f8261dde2b17f4d9fad5bfb1617bf5012cf5ad">xpath_type_string</a>,
<br>
<a class="el" href="namespacepugi.html#51b15030472dcfa64b5c0d2252f8261d049dd1494237a55f8aba3392d12a0164">xpath_type_boolean</a>
<br>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">XPath query return type classification. <a href="namespacepugi.html#51b15030472dcfa64b5c0d2252f8261d">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b555">xml_parse_status</a> { <br>
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b55546ddc2abb6a54fdac07cf9086b45f10f">status_ok</a> = 0,
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b55532e05bc1b1356846e6a5fb0ec097d36b">status_file_not_found</a>,
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b55528bb6318a65eec5abcf1ef8174b92246">status_io_error</a>,
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b55559e75d024e9f5c213ca6f4db8102b978">status_out_of_memory</a>,
<br>
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b55537a3c224657a16f27c950ec70954c981">status_internal_error</a>,
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b55571a555b91e80b6d8f84aeb6a93904d28">status_unrecognized_tag</a>,
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b555d7a57e8554aabea52ed8b0d6a0891622">status_bad_pi</a>,
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b555563327f534e9b3ce55f9f7364aa746b2">status_bad_comment</a>,
<br>
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b555a2ebdaf5e8bf5414bec3004270e102b8">status_bad_cdata</a>,
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b55558d1b0d8787e97fc1b5b31ec5e4fabcf">status_bad_doctype</a>,
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b555c5257467a3d1a971134c457066b21ee5">status_bad_pcdata</a>,
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b5553cf4e84a5b433ce50e6f3037df5c1bdd">status_bad_start_element</a>,
<br>
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b5552b34aa9968d63b28a6d51b30575ff95a">status_bad_attribute</a>,
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b555261cbf22c7da45388bcc1e6759020790">status_bad_end_element</a>,
<a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b55507a5f6f8392474ccb2d5dc10fe2307a2">status_end_element_mismatch</a>
<br>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parsing status enumeration, returned as part of xml_parse_result struct. <a href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b555">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::basic_string< char, std::char_traits<<br>
char >, std::allocator< char <br>
> > PUGIXML_FUNCTION </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#437f8018424e4adb645dbd4ace6a83bc">as_utf8</a> (const wchar_t *str)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert wide string to utf8. <a href="#437f8018424e4adb645dbd4ace6a83bc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PUGIXML_DEPRECATED std::basic_string<<br>
wchar_t, std::char_traits<<br>
wchar_t >, std::allocator<<br>
wchar_t > > PUGIXML_FUNCTION </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#3eedd4b9cfe8e7ada2560003c8c24a62">as_utf16</a> (const char *str)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert utf8 to wide string. <a href="#3eedd4b9cfe8e7ada2560003c8c24a62"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::basic_string< wchar_t,<br>
std::char_traits< wchar_t >,<br>
std::allocator< wchar_t <br>
> > PUGIXML_FUNCTION </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#6a3152f1a3f7e7750580f7549758ef64">as_wide</a> (const char *str)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert utf8 to wide string. <a href="#6a3152f1a3f7e7750580f7549758ef64"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void PUGIXML_FUNCTION </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#bc67229fed7dbe24a410d83b9233f916">set_memory_management_functions</a> (<a class="el" href="namespacepugi.html#15c8048c4bbfca2ad0ab9fc0b56ea522">allocation_function</a> allocate, <a class="el" href="namespacepugi.html#a6161e8d6344110788d7ff8a11ca680b">deallocation_function</a> deallocate)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Override default memory management functions. <a href="#bc67229fed7dbe24a410d83b9233f916"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespacepugi.html#15c8048c4bbfca2ad0ab9fc0b56ea522">allocation_function</a> PUGIXML_FUNCTION </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#0d3d42320b07fe1865feb5e8e7c01e38">get_memory_allocation_function</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get current memory allocation function. <a href="#0d3d42320b07fe1865feb5e8e7c01e38"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="namespacepugi.html#a6161e8d6344110788d7ff8a11ca680b">deallocation_function</a> PUGIXML_FUNCTION </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#0823c1cb767482d9d72d1df055be3b67">get_memory_deallocation_function</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get current memory deallocation function. <a href="#0823c1cb767482d9d72d1df055be3b67"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#e5058761cfd25d6cdb7e092659dae1fd">parse_minimal</a> = 0x0000</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Minimal parsing mode. <a href="#e5058761cfd25d6cdb7e092659dae1fd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#8fb7ea408d60b4f2ca79dd30b651f545">parse_pi</a> = 0x0001</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This flag determines if processing instructions (nodes with type node_pi; such nodes have the form of <? target content ?> or <? target ?> in XML) are to be put in DOM tree. <a href="#8fb7ea408d60b4f2ca79dd30b651f545"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#dcab316176bfaf69158339962fb4ad38">parse_comments</a> = 0x0002</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This flag determines if comments (nodes with type node_comment; such nodes have the form of in XML) are to be put in DOM tree. <a href="#dcab316176bfaf69158339962fb4ad38"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#47b679897f8bc15e4e152978fc88c208">parse_cdata</a> = 0x0004</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This flag determines if CDATA sections (nodes with type node_cdata; such nodes have the form of <![CDATA[[content]]> in XML) are to be put in DOM tree. <a href="#47b679897f8bc15e4e152978fc88c208"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#e492a24302294f1ce3fbd56f2edbf131">parse_ws_pcdata</a> = 0x0008</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This flag determines if nodes with PCDATA (regular text) that consist only of whitespace characters are to be put in DOM tree. <a href="#e492a24302294f1ce3fbd56f2edbf131"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#b5ef8454110599611900ff48012c8ad6">parse_escapes</a> = 0x0010</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This flag determines if character and entity references are to be expanded during the parsing process. <a href="#b5ef8454110599611900ff48012c8ad6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#d4e017365d2ff3ee04e226c35129b475">parse_eol</a> = 0x0020</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This flag determines if EOL handling (that is, replacing sequences 0x0d 0x0a by a single 0x0a character, and replacing all standalone 0x0d characters by 0x0a) is to be performed on input data (that is, comments contents, PCDATA/CDATA contents and attribute values). <a href="#d4e017365d2ff3ee04e226c35129b475"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PUGIXML_DEPRECATED const unsigned <br>
int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#3da188344c4c53e6012eac2daa9ffd17">parse_wnorm_attribute</a> = 0x0040</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This flag determines if attribute value normalization should be performed for all attributes. <a href="#3da188344c4c53e6012eac2daa9ffd17"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#1e943812f2de36fc3ee14f7756afdbd7">parse_wconv_attribute</a> = 0x0080</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This flag determines if attribute value normalization should be performed for all attributes. <a href="#1e943812f2de36fc3ee14f7756afdbd7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#db5db03ce720dcd90e900b9bb7e70427">parse_declaration</a> = 0x0100</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This flag determines if XML document declaration (this node has the form of <?xml . <a href="#db5db03ce720dcd90e900b9bb7e70427"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">parse_default</a> = <a class="el" href="namespacepugi.html#47b679897f8bc15e4e152978fc88c208">parse_cdata</a> | <a class="el" href="namespacepugi.html#b5ef8454110599611900ff48012c8ad6">parse_escapes</a> | <a class="el" href="namespacepugi.html#1e943812f2de36fc3ee14f7756afdbd7">parse_wconv_attribute</a> | <a class="el" href="namespacepugi.html#d4e017365d2ff3ee04e226c35129b475">parse_eol</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This is the default set of flags. <a href="#d7c927d1c1752330637c3318b0d7b366"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#ce12e8dee65c5bae8ee42a64be7421d3">format_indent</a> = 0x01</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Indent the nodes that are written to output stream with as many indentation strings as deep the node is in DOM tree. <a href="#ce12e8dee65c5bae8ee42a64be7421d3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#b863bcafd203aeaa98953df3a998243f">format_write_bom</a> = 0x02</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This flag determines if encoding-specific BOM is to be written to output stream. <a href="#b863bcafd203aeaa98953df3a998243f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PUGIXML_DEPRECATED const unsigned <br>
int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#ce7d9ff7c724cd74e6fffc5c11c2c926">format_write_bom_utf8</a> = <a class="el" href="namespacepugi.html#b863bcafd203aeaa98953df3a998243f">format_write_bom</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#2dd811716b1c0a6a2431ceca43bc649e">format_raw</a> = 0x04</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">If this flag is on, no indentation is performed and no line breaks are written to output file. <a href="#2dd811716b1c0a6a2431ceca43bc649e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#0ec33e4db09260718f7003ed091f5a1b">format_no_declaration</a> = 0x08</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">If this flag is on, no default XML declaration is written to output file. <a href="#0ec33e4db09260718f7003ed091f5a1b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepugi.html#325f48a35abbaeacdfd8b7fc9ed1713c">format_default</a> = <a class="el" href="namespacepugi.html#ce12e8dee65c5bae8ee42a64be7421d3">format_indent</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">This is the default set of formatting flags. <a href="#325f48a35abbaeacdfd8b7fc9ed1713c"></a><br></td></tr>
</table>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="15c8048c4bbfca2ad0ab9fc0b56ea522"></a><!-- doxytag: member="pugi::allocation_function" ref="15c8048c4bbfca2ad0ab9fc0b56ea522" args=")(size_t size)" --><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">typedef void*(* <a class="el" href="namespacepugi.html#15c8048c4bbfca2ad0ab9fc0b56ea522">pugi::allocation_function</a>)(size_t size) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Memory 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>size</em> </td><td>- allocation size </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>pointer to allocated memory on success, NULL on failure </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="a6161e8d6344110788d7ff8a11ca680b"></a><!-- doxytag: member="pugi::deallocation_function" ref="a6161e8d6344110788d7ff8a11ca680b" args=")(void *ptr)" --><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">typedef void(* <a class="el" href="namespacepugi.html#a6161e8d6344110788d7ff8a11ca680b">pugi::deallocation_function</a>)(void *ptr) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Memory deallocation 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>ptr</em> </td><td>- pointer to memory previously allocated by allocation function </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="137e94a038e4ab0ada6477cf7f6153a9"></a><!-- doxytag: member="pugi::xml_node_type" ref="137e94a038e4ab0ada6477cf7f6153a9" args="" --><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">enum <a class="el" href="namespacepugi.html#137e94a038e4ab0ada6477cf7f6153a9">pugi::xml_node_type</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Tree node classification.
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="137e94a038e4ab0ada6477cf7f6153a9d58c55e810076e076318cc2268191b1f"></a><!-- doxytag: member="node_null" ref="137e94a038e4ab0ada6477cf7f6153a9d58c55e810076e076318cc2268191b1f" args="" -->node_null</em> </td><td>
Undifferentiated entity. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="137e94a038e4ab0ada6477cf7f6153a9ab42ba83cf941f7297325eade205bf80"></a><!-- doxytag: member="node_document" ref="137e94a038e4ab0ada6477cf7f6153a9ab42ba83cf941f7297325eade205bf80" args="" -->node_document</em> </td><td>
A document tree's absolute root. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="137e94a038e4ab0ada6477cf7f6153a96d223e3a0d8ce8e4ee6f4a2697b8bcd1"></a><!-- doxytag: member="node_element" ref="137e94a038e4ab0ada6477cf7f6153a96d223e3a0d8ce8e4ee6f4a2697b8bcd1" args="" -->node_element</em> </td><td>
E.g. '<...>'. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="137e94a038e4ab0ada6477cf7f6153a95c0042693a8b8b6b54c191b4403fca21"></a><!-- doxytag: member="node_pcdata" ref="137e94a038e4ab0ada6477cf7f6153a95c0042693a8b8b6b54c191b4403fca21" args="" -->node_pcdata</em> </td><td>
E.g. '>...<'. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="137e94a038e4ab0ada6477cf7f6153a9df13d60a4dfd047be0700e1711aeb1ea"></a><!-- doxytag: member="node_cdata" ref="137e94a038e4ab0ada6477cf7f6153a9df13d60a4dfd047be0700e1711aeb1ea" args="" -->node_cdata</em> </td><td>
E.g. '<![CDATA[...]]>'. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="137e94a038e4ab0ada6477cf7f6153a9445fef674a66777dfd28dbd6bab14fed"></a><!-- doxytag: member="node_comment" ref="137e94a038e4ab0ada6477cf7f6153a9445fef674a66777dfd28dbd6bab14fed" args="" -->node_comment</em> </td><td>
E.g. ''. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="137e94a038e4ab0ada6477cf7f6153a9cd772b12b3d5442b9771151f45134440"></a><!-- doxytag: member="node_pi" ref="137e94a038e4ab0ada6477cf7f6153a9cd772b12b3d5442b9771151f45134440" args="" -->node_pi</em> </td><td>
E.g. '<?...?>'. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="137e94a038e4ab0ada6477cf7f6153a9ad8024cc4a4afbc68c871f3826a00616"></a><!-- doxytag: member="node_declaration" ref="137e94a038e4ab0ada6477cf7f6153a9ad8024cc4a4afbc68c871f3826a00616" args="" -->node_declaration</em> </td><td>
E.g. '<?xml ...?>'. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="ad7ded58c805fa8936fc17390a9a1b52"></a><!-- doxytag: member="pugi::encoding_t" ref="ad7ded58c805fa8936fc17390a9a1b52" args="" --><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">enum <a class="el" href="namespacepugi.html#ad7ded58c805fa8936fc17390a9a1b52">pugi::encoding_t</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
These flags determine the encoding of input data for XML document.
<p>
Default mode is encoding_auto, which means that document encoding is autodetected from BOM and necessary encoding conversions are applied. You can override this mode by using any of the specific encodings. <dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="ad7ded58c805fa8936fc17390a9a1b52e11b2ef666f03e77b7e764e38d22dc17"></a><!-- doxytag: member="encoding_auto" ref="ad7ded58c805fa8936fc17390a9a1b52e11b2ef666f03e77b7e764e38d22dc17" args="" -->encoding_auto</em> </td><td>
Auto-detect input encoding using BOM or </<? detection; use UTF8 if BOM is not found. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ad7ded58c805fa8936fc17390a9a1b5296c73bf345f635f0fbee5f6646fb095e"></a><!-- doxytag: member="encoding_utf8" ref="ad7ded58c805fa8936fc17390a9a1b5296c73bf345f635f0fbee5f6646fb095e" args="" -->encoding_utf8</em> </td><td>
UTF8 encoding. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ad7ded58c805fa8936fc17390a9a1b5247be6a1d4828e9b284d40894afc27e54"></a><!-- doxytag: member="encoding_utf16_le" ref="ad7ded58c805fa8936fc17390a9a1b5247be6a1d4828e9b284d40894afc27e54" args="" -->encoding_utf16_le</em> </td><td>
Little-endian UTF16. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ad7ded58c805fa8936fc17390a9a1b528689b47b8387fc3524334e8d106fda16"></a><!-- doxytag: member="encoding_utf16_be" ref="ad7ded58c805fa8936fc17390a9a1b528689b47b8387fc3524334e8d106fda16" args="" -->encoding_utf16_be</em> </td><td>
Big-endian UTF16. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ad7ded58c805fa8936fc17390a9a1b52c1fbf60f9cb5db0e9e38fbfdba7afb6a"></a><!-- doxytag: member="encoding_utf16" ref="ad7ded58c805fa8936fc17390a9a1b52c1fbf60f9cb5db0e9e38fbfdba7afb6a" args="" -->encoding_utf16</em> </td><td>
UTF16 with native endianness. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ad7ded58c805fa8936fc17390a9a1b52c54c474159301358c31d931855987dc6"></a><!-- doxytag: member="encoding_utf32_le" ref="ad7ded58c805fa8936fc17390a9a1b52c54c474159301358c31d931855987dc6" args="" -->encoding_utf32_le</em> </td><td>
Little-endian UTF32. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ad7ded58c805fa8936fc17390a9a1b5255b0b036621ebcfcd5e0e43b8f69f4dc"></a><!-- doxytag: member="encoding_utf32_be" ref="ad7ded58c805fa8936fc17390a9a1b5255b0b036621ebcfcd5e0e43b8f69f4dc" args="" -->encoding_utf32_be</em> </td><td>
Big-endian UTF32. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ad7ded58c805fa8936fc17390a9a1b5246a8f0d9f4c03350f7a831a370d2b032"></a><!-- doxytag: member="encoding_utf32" ref="ad7ded58c805fa8936fc17390a9a1b5246a8f0d9f4c03350f7a831a370d2b032" args="" -->encoding_utf32</em> </td><td>
UTF32 with native endianness. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ad7ded58c805fa8936fc17390a9a1b52e670d39438f31fe41f1a596739e5c00e"></a><!-- doxytag: member="encoding_wchar" ref="ad7ded58c805fa8936fc17390a9a1b52e670d39438f31fe41f1a596739e5c00e" args="" -->encoding_wchar</em> </td><td>
The same encoding wchar_t has (either UTF16 or UTF32). </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="51b15030472dcfa64b5c0d2252f8261d"></a><!-- doxytag: member="pugi::xpath_type_t" ref="51b15030472dcfa64b5c0d2252f8261d" args="" --><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">enum <a class="el" href="namespacepugi.html#51b15030472dcfa64b5c0d2252f8261d">pugi::xpath_type_t</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
XPath query return type classification.
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="51b15030472dcfa64b5c0d2252f8261daa768b8302ccc893f3cc9ba799360a77"></a><!-- doxytag: member="xpath_type_none" ref="51b15030472dcfa64b5c0d2252f8261daa768b8302ccc893f3cc9ba799360a77" args="" -->xpath_type_none</em> </td><td>
Unknown type (query failed to compile). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="51b15030472dcfa64b5c0d2252f8261df5613748204e2e4861524e7d63a699c9"></a><!-- doxytag: member="xpath_type_node_set" ref="51b15030472dcfa64b5c0d2252f8261df5613748204e2e4861524e7d63a699c9" args="" -->xpath_type_node_set</em> </td><td>
Node set (<a class="el" href="classpugi_1_1xpath__node__set.html">xpath_node_set</a>). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="51b15030472dcfa64b5c0d2252f8261d02959f74f4fe93d71a1e109a45f23825"></a><!-- doxytag: member="xpath_type_number" ref="51b15030472dcfa64b5c0d2252f8261d02959f74f4fe93d71a1e109a45f23825" args="" -->xpath_type_number</em> </td><td>
Number. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="51b15030472dcfa64b5c0d2252f8261dde2b17f4d9fad5bfb1617bf5012cf5ad"></a><!-- doxytag: member="xpath_type_string" ref="51b15030472dcfa64b5c0d2252f8261dde2b17f4d9fad5bfb1617bf5012cf5ad" args="" -->xpath_type_string</em> </td><td>
String. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="51b15030472dcfa64b5c0d2252f8261d049dd1494237a55f8aba3392d12a0164"></a><!-- doxytag: member="xpath_type_boolean" ref="51b15030472dcfa64b5c0d2252f8261d049dd1494237a55f8aba3392d12a0164" args="" -->xpath_type_boolean</em> </td><td>
Boolean. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b555"></a><!-- doxytag: member="pugi::xml_parse_status" ref="9054ca609e12afb8f3e5892fc6c0b555" args="" --><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">enum <a class="el" href="namespacepugi.html#9054ca609e12afb8f3e5892fc6c0b555">pugi::xml_parse_status</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Parsing status enumeration, returned as part of <a class="el" href="structpugi_1_1xml__parse__result.html">xml_parse_result</a> struct.
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b55546ddc2abb6a54fdac07cf9086b45f10f"></a><!-- doxytag: member="status_ok" ref="9054ca609e12afb8f3e5892fc6c0b55546ddc2abb6a54fdac07cf9086b45f10f" args="" -->status_ok</em> </td><td>
No error. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b55532e05bc1b1356846e6a5fb0ec097d36b"></a><!-- doxytag: member="status_file_not_found" ref="9054ca609e12afb8f3e5892fc6c0b55532e05bc1b1356846e6a5fb0ec097d36b" args="" -->status_file_not_found</em> </td><td>
File was not found during load_file(). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b55528bb6318a65eec5abcf1ef8174b92246"></a><!-- doxytag: member="status_io_error" ref="9054ca609e12afb8f3e5892fc6c0b55528bb6318a65eec5abcf1ef8174b92246" args="" -->status_io_error</em> </td><td>
Error reading from file/stream. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b55559e75d024e9f5c213ca6f4db8102b978"></a><!-- doxytag: member="status_out_of_memory" ref="9054ca609e12afb8f3e5892fc6c0b55559e75d024e9f5c213ca6f4db8102b978" args="" -->status_out_of_memory</em> </td><td>
Could not allocate memory. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b55537a3c224657a16f27c950ec70954c981"></a><!-- doxytag: member="status_internal_error" ref="9054ca609e12afb8f3e5892fc6c0b55537a3c224657a16f27c950ec70954c981" args="" -->status_internal_error</em> </td><td>
Internal error occured. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b55571a555b91e80b6d8f84aeb6a93904d28"></a><!-- doxytag: member="status_unrecognized_tag" ref="9054ca609e12afb8f3e5892fc6c0b55571a555b91e80b6d8f84aeb6a93904d28" args="" -->status_unrecognized_tag</em> </td><td>
Parser could not determine tag type. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b555d7a57e8554aabea52ed8b0d6a0891622"></a><!-- doxytag: member="status_bad_pi" ref="9054ca609e12afb8f3e5892fc6c0b555d7a57e8554aabea52ed8b0d6a0891622" args="" -->status_bad_pi</em> </td><td>
Parsing error occured while parsing document declaration/processing instruction (<?...?>). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b555563327f534e9b3ce55f9f7364aa746b2"></a><!-- doxytag: member="status_bad_comment" ref="9054ca609e12afb8f3e5892fc6c0b555563327f534e9b3ce55f9f7364aa746b2" args="" -->status_bad_comment</em> </td><td>
Parsing error occured while parsing comment (). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b555a2ebdaf5e8bf5414bec3004270e102b8"></a><!-- doxytag: member="status_bad_cdata" ref="9054ca609e12afb8f3e5892fc6c0b555a2ebdaf5e8bf5414bec3004270e102b8" args="" -->status_bad_cdata</em> </td><td>
Parsing error occured while parsing CDATA section (<![CDATA[...]]>). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b55558d1b0d8787e97fc1b5b31ec5e4fabcf"></a><!-- doxytag: member="status_bad_doctype" ref="9054ca609e12afb8f3e5892fc6c0b55558d1b0d8787e97fc1b5b31ec5e4fabcf" args="" -->status_bad_doctype</em> </td><td>
Parsing error occured while parsing document type declaration. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b555c5257467a3d1a971134c457066b21ee5"></a><!-- doxytag: member="status_bad_pcdata" ref="9054ca609e12afb8f3e5892fc6c0b555c5257467a3d1a971134c457066b21ee5" args="" -->status_bad_pcdata</em> </td><td>
Parsing error occured while parsing PCDATA section (>...<). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b5553cf4e84a5b433ce50e6f3037df5c1bdd"></a><!-- doxytag: member="status_bad_start_element" ref="9054ca609e12afb8f3e5892fc6c0b5553cf4e84a5b433ce50e6f3037df5c1bdd" args="" -->status_bad_start_element</em> </td><td>
Parsing error occured while parsing start element tag (<name ...>). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b5552b34aa9968d63b28a6d51b30575ff95a"></a><!-- doxytag: member="status_bad_attribute" ref="9054ca609e12afb8f3e5892fc6c0b5552b34aa9968d63b28a6d51b30575ff95a" args="" -->status_bad_attribute</em> </td><td>
Parsing error occured while parsing element attribute. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b555261cbf22c7da45388bcc1e6759020790"></a><!-- doxytag: member="status_bad_end_element" ref="9054ca609e12afb8f3e5892fc6c0b555261cbf22c7da45388bcc1e6759020790" args="" -->status_bad_end_element</em> </td><td>
Parsing error occured while parsing end element tag (</name>). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="9054ca609e12afb8f3e5892fc6c0b55507a5f6f8392474ccb2d5dc10fe2307a2"></a><!-- doxytag: member="status_end_element_mismatch" ref="9054ca609e12afb8f3e5892fc6c0b55507a5f6f8392474ccb2d5dc10fe2307a2" args="" -->status_end_element_mismatch</em> </td><td>
There was a mismatch of start-end tags (closing tag had incorrect name, some tag was not closed or there was an excessive closing tag). </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="437f8018424e4adb645dbd4ace6a83bc"></a><!-- doxytag: member="pugi::as_utf8" ref="437f8018424e4adb645dbd4ace6a83bc" args="(const wchar_t *str)" --><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">std::basic_string<char, std::char_traits<char>, std::allocator<char> > PUGIXML_FUNCTION pugi::as_utf8 </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const wchar_t * </td>
<td class="mdname1" valign="top" nowrap> <em>str</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Convert wide string to utf8.
<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>str</em> </td><td>- input wide string string </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>output UTF8 string </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="3eedd4b9cfe8e7ada2560003c8c24a62"></a><!-- doxytag: member="pugi::as_utf16" ref="3eedd4b9cfe8e7ada2560003c8c24a62" args="(const char *str)" --><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 std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > PUGIXML_FUNCTION pugi::as_utf16 </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const char * </td>
<td class="mdname1" valign="top" nowrap> <em>str</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Convert utf8 to wide string.
<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>str</em> </td><td>- input UTF8 string </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>output wide string string</dd></dl>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000003">Deprecated:</a></b></dt><dd>This function is deprecated and will be removed in future versions; use as_wide instead </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="6a3152f1a3f7e7750580f7549758ef64"></a><!-- doxytag: member="pugi::as_wide" ref="6a3152f1a3f7e7750580f7549758ef64" args="(const char *str)" --><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">std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > PUGIXML_FUNCTION pugi::as_wide </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const char * </td>
<td class="mdname1" valign="top" nowrap> <em>str</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Convert utf8 to wide string.
<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>str</em> </td><td>- input UTF8 string </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>output wide string string </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="bc67229fed7dbe24a410d83b9233f916"></a><!-- doxytag: member="pugi::set_memory_management_functions" ref="bc67229fed7dbe24a410d83b9233f916" args="(allocation_function allocate, deallocation_function deallocate)" --><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 PUGIXML_FUNCTION pugi::set_memory_management_functions </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">allocation_function </td>
<td class="mdname" nowrap> <em>allocate</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>deallocation_function </td>
<td class="mdname" nowrap> <em>deallocate</em></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>
Override default memory management functions.
<p>
All subsequent allocations/deallocations will be performed via supplied functions. Take care not to change memory management functions if any <a class="el" href="classpugi_1_1xml__document.html">xml_document</a> instances are still alive - this is considered undefined behaviour (expect crashes/memory damages/etc.).<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>allocate</em> </td><td>- allocation function </td></tr>
<tr><td valign="top"></td><td valign="top"><em>deallocate</em> </td><td>- deallocation function</td></tr>
</table>
</dl>
<dl compact><dt><b>Note:</b></dt><dd>XPath-related allocations, as well as allocations in functions that return std::string (<a class="el" href="classpugi_1_1xml__node.html#129ae059dfb2f01127982bde445d6ff0">xml_node::path</a>, as_utf8, as_wide) are not performed via these functions. <p>
If you're using parse() with ownership transfer, you have to allocate the buffer you pass to parse() with allocation function you set via this function. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="0d3d42320b07fe1865feb5e8e7c01e38"></a><!-- doxytag: member="pugi::get_memory_allocation_function" ref="0d3d42320b07fe1865feb5e8e7c01e38" args="()" --><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="namespacepugi.html#15c8048c4bbfca2ad0ab9fc0b56ea522">allocation_function</a> PUGIXML_FUNCTION pugi::get_memory_allocation_function </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get current memory allocation function.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>memory allocation function </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="namespacepugi.html#bc67229fed7dbe24a410d83b9233f916">set_memory_management_functions</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="0823c1cb767482d9d72d1df055be3b67"></a><!-- doxytag: member="pugi::get_memory_deallocation_function" ref="0823c1cb767482d9d72d1df055be3b67" args="()" --><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="namespacepugi.html#a6161e8d6344110788d7ff8a11ca680b">deallocation_function</a> PUGIXML_FUNCTION pugi::get_memory_deallocation_function </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Get current memory deallocation function.
<p>
<dl compact><dt><b>Returns:</b></dt><dd>memory deallocation function </dd></dl>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="namespacepugi.html#bc67229fed7dbe24a410d83b9233f916">set_memory_management_functions</a> </dd></dl>
</td>
</tr>
</table>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="e5058761cfd25d6cdb7e092659dae1fd"></a><!-- doxytag: member="pugi::parse_minimal" ref="e5058761cfd25d6cdb7e092659dae1fd" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#e5058761cfd25d6cdb7e092659dae1fd">pugi::parse_minimal</a> = 0x0000 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Minimal parsing mode.
<p>
Equivalent to turning all other flags off. This set of flags means that pugixml does not add pi/cdata sections or comments to DOM tree and does not perform any conversions for input data, meaning fastest parsing. </td>
</tr>
</table>
<a class="anchor" name="8fb7ea408d60b4f2ca79dd30b651f545"></a><!-- doxytag: member="pugi::parse_pi" ref="8fb7ea408d60b4f2ca79dd30b651f545" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#8fb7ea408d60b4f2ca79dd30b651f545">pugi::parse_pi</a> = 0x0001 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This flag determines if processing instructions (nodes with type node_pi; such nodes have the form of <? target content ?> or <? target ?> in XML) are to be put in DOM tree.
<p>
If this flag is off, they are not put in the tree, but are still parsed and checked for correctness.<p>
The corresponding node in DOM tree will have type node_pi, name "target" and value "content", if any.<p>
Note that <?xml ...?> (document declaration) is not considered to be a PI.<p>
This flag is off by default. </td>
</tr>
</table>
<a class="anchor" name="dcab316176bfaf69158339962fb4ad38"></a><!-- doxytag: member="pugi::parse_comments" ref="dcab316176bfaf69158339962fb4ad38" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#dcab316176bfaf69158339962fb4ad38">pugi::parse_comments</a> = 0x0002 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This flag determines if comments (nodes with type node_comment; such nodes have the form of in XML) are to be put in DOM tree.
<p>
If this flag is off, they are not put in the tree, but are still parsed and checked for correctness.<p>
The corresponding node in DOM tree will have type node_comment, empty name and value "content".<p>
This flag is off by default. </td>
</tr>
</table>
<a class="anchor" name="47b679897f8bc15e4e152978fc88c208"></a><!-- doxytag: member="pugi::parse_cdata" ref="47b679897f8bc15e4e152978fc88c208" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#47b679897f8bc15e4e152978fc88c208">pugi::parse_cdata</a> = 0x0004 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This flag determines if CDATA sections (nodes with type node_cdata; such nodes have the form of <![CDATA[[content]]> in XML) are to be put in DOM tree.
<p>
If this flag is off, they are not put in the tree, but are still parsed and checked for correctness.<p>
The corresponding node in DOM tree will have type node_cdata, empty name and value "content".<p>
This flag is on by default. </td>
</tr>
</table>
<a class="anchor" name="e492a24302294f1ce3fbd56f2edbf131"></a><!-- doxytag: member="pugi::parse_ws_pcdata" ref="e492a24302294f1ce3fbd56f2edbf131" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#e492a24302294f1ce3fbd56f2edbf131">pugi::parse_ws_pcdata</a> = 0x0008 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This flag determines if nodes with PCDATA (regular text) that consist only of whitespace characters are to be put in DOM tree.
<p>
Often whitespace-only data is not significant for the application, and the cost of allocating and storing such nodes (both memory and speed-wise) can be significant. For example, after parsing XML string "<node> <a/> </node>", <node> element will have 3 children when parse_ws_pcdata is set (child with type node_pcdata and value=" ", child with type node_element and name "a", and another child with type node_pcdata and value=" "), and only 1 child when parse_ws_pcdata is not set.<p>
This flag is off by default. </td>
</tr>
</table>
<a class="anchor" name="b5ef8454110599611900ff48012c8ad6"></a><!-- doxytag: member="pugi::parse_escapes" ref="b5ef8454110599611900ff48012c8ad6" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#b5ef8454110599611900ff48012c8ad6">pugi::parse_escapes</a> = 0x0010 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This flag determines if character and entity references are to be expanded during the parsing process.
<p>
Character references are &#...; or &x...; (... is Unicode numeric representation of character in either decimal (&#...;) or hexadecimal (&x...;) form), entity references are &...; Note that as pugixml does not handle DTD, the only allowed entities are predefined ones - &lt;, &gt;, &amp;, &apos; and &quot;. If character/entity reference can not be expanded, it is leaved as is, so you can do additional processing later. Reference expansion is performed in attribute values and PCDATA content.<p>
This flag is on by default. </td>
</tr>
</table>
<a class="anchor" name="d4e017365d2ff3ee04e226c35129b475"></a><!-- doxytag: member="pugi::parse_eol" ref="d4e017365d2ff3ee04e226c35129b475" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#d4e017365d2ff3ee04e226c35129b475">pugi::parse_eol</a> = 0x0020 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This flag determines if EOL handling (that is, replacing sequences 0x0d 0x0a by a single 0x0a character, and replacing all standalone 0x0d characters by 0x0a) is to be performed on input data (that is, comments contents, PCDATA/CDATA contents and attribute values).
<p>
This flag is on by default. </td>
</tr>
</table>
<a class="anchor" name="3da188344c4c53e6012eac2daa9ffd17"></a><!-- doxytag: member="pugi::parse_wnorm_attribute" ref="3da188344c4c53e6012eac2daa9ffd17" args="" --><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 const unsigned int <a class="el" href="namespacepugi.html#3da188344c4c53e6012eac2daa9ffd17">pugi::parse_wnorm_attribute</a> = 0x0040 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This flag determines if attribute value normalization should be performed for all attributes.
<p>
This means, that: 1. Whitespace characters (new line, tab and space) are replaced with space (' ') 2. Afterwards sequences of spaces are replaced with a single space 3. Leading/trailing whitespace characters are trimmed<p>
This flag is off by default.<p>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000001">Deprecated:</a></b></dt><dd>This flag is deprecated </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="1e943812f2de36fc3ee14f7756afdbd7"></a><!-- doxytag: member="pugi::parse_wconv_attribute" ref="1e943812f2de36fc3ee14f7756afdbd7" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#1e943812f2de36fc3ee14f7756afdbd7">pugi::parse_wconv_attribute</a> = 0x0080 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This flag determines if attribute value normalization should be performed for all attributes.
<p>
This means, that whitespace characters (new line, tab and space) are replaced with space (' '). Note, that the actions performed while this flag is on are also performed if parse_wnorm_attribute is on, so this flag has no effect if parse_wnorm_attribute flag is set.<p>
This flag is on by default. </td>
</tr>
</table>
<a class="anchor" name="db5db03ce720dcd90e900b9bb7e70427"></a><!-- doxytag: member="pugi::parse_declaration" ref="db5db03ce720dcd90e900b9bb7e70427" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#db5db03ce720dcd90e900b9bb7e70427">pugi::parse_declaration</a> = 0x0100 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This flag determines if XML document declaration (this node has the form of <?xml .
<p>
.. ?> in XML) are to be put in DOM tree. If this flag is off, it is not put in the tree, but is still parsed and checked for correctness.<p>
The corresponding node in DOM tree will have type node_declaration, name "xml" and attributes, if any.<p>
This flag is off by default. </td>
</tr>
</table>
<a class="anchor" name="d7c927d1c1752330637c3318b0d7b366"></a><!-- doxytag: member="pugi::parse_default" ref="d7c927d1c1752330637c3318b0d7b366" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#d7c927d1c1752330637c3318b0d7b366">pugi::parse_default</a> = <a class="el" href="namespacepugi.html#47b679897f8bc15e4e152978fc88c208">parse_cdata</a> | <a class="el" href="namespacepugi.html#b5ef8454110599611900ff48012c8ad6">parse_escapes</a> | <a class="el" href="namespacepugi.html#1e943812f2de36fc3ee14f7756afdbd7">parse_wconv_attribute</a> | <a class="el" href="namespacepugi.html#d4e017365d2ff3ee04e226c35129b475">parse_eol</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This is the default set of flags.
<p>
It includes parsing CDATA sections (comments/PIs are not parsed), performing character and entity reference expansion, replacing whitespace characters with spaces in attribute values and performing EOL handling. Note, that PCDATA sections consisting only of whitespace characters are not parsed (by default) for performance reasons. </td>
</tr>
</table>
<a class="anchor" name="ce12e8dee65c5bae8ee42a64be7421d3"></a><!-- doxytag: member="pugi::format_indent" ref="ce12e8dee65c5bae8ee42a64be7421d3" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#ce12e8dee65c5bae8ee42a64be7421d3">pugi::format_indent</a> = 0x01 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Indent the nodes that are written to output stream with as many indentation strings as deep the node is in DOM tree.
<p>
This flag is on by default. </td>
</tr>
</table>
<a class="anchor" name="b863bcafd203aeaa98953df3a998243f"></a><!-- doxytag: member="pugi::format_write_bom" ref="b863bcafd203aeaa98953df3a998243f" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#b863bcafd203aeaa98953df3a998243f">pugi::format_write_bom</a> = 0x02 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This flag determines if encoding-specific BOM is to be written to output stream.
<p>
This flag is off by default. </td>
</tr>
</table>
<a class="anchor" name="ce7d9ff7c724cd74e6fffc5c11c2c926"></a><!-- doxytag: member="pugi::format_write_bom_utf8" ref="ce7d9ff7c724cd74e6fffc5c11c2c926" args="" --><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 const unsigned int <a class="el" href="namespacepugi.html#ce7d9ff7c724cd74e6fffc5c11c2c926">pugi::format_write_bom_utf8</a> = <a class="el" href="namespacepugi.html#b863bcafd203aeaa98953df3a998243f">format_write_bom</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000002">Deprecated:</a></b></dt><dd>This constant is deprecated and will be removed in future versions; use format_write_bom instead </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="2dd811716b1c0a6a2431ceca43bc649e"></a><!-- doxytag: member="pugi::format_raw" ref="2dd811716b1c0a6a2431ceca43bc649e" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#2dd811716b1c0a6a2431ceca43bc649e">pugi::format_raw</a> = 0x04 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
If this flag is on, no indentation is performed and no line breaks are written to output file.
<p>
This means that the data is written to output stream as is.<p>
This flag is off by default. </td>
</tr>
</table>
<a class="anchor" name="0ec33e4db09260718f7003ed091f5a1b"></a><!-- doxytag: member="pugi::format_no_declaration" ref="0ec33e4db09260718f7003ed091f5a1b" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#0ec33e4db09260718f7003ed091f5a1b">pugi::format_no_declaration</a> = 0x08 </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
If this flag is on, no default XML declaration is written to output file.
<p>
This means that there will be no XML declaration in output stream unless there was one in XML document (i.e. if it was parsed with parse_declaration flag).<p>
This flag is off by default. </td>
</tr>
</table>
<a class="anchor" name="325f48a35abbaeacdfd8b7fc9ed1713c"></a><!-- doxytag: member="pugi::format_default" ref="325f48a35abbaeacdfd8b7fc9ed1713c" args="" --><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">const unsigned int <a class="el" href="namespacepugi.html#325f48a35abbaeacdfd8b7fc9ed1713c">pugi::format_default</a> = <a class="el" href="namespacepugi.html#ce12e8dee65c5bae8ee42a64be7421d3">format_indent</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
This is the default set of formatting flags.
<p>
It includes indenting nodes depending on their depth in DOM tree. </td>
</tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Tue May 25 23:22:40 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>
|