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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>libxml++: xmlpp::Document Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-extra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">libxml++
 <span id="projectnumber">2.40.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespacexmlpp.html">xmlpp</a></li><li class="navelem"><a class="el" href="classxmlpp_1_1Document.html">Document</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-methods">Protected Member Functions</a> |
<a href="classxmlpp_1_1Document-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">xmlpp::Document Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Represents an XML document in the DOM model.
<a href="classxmlpp_1_1Document.html#details">More...</a></p>
<p><code>#include <libxml++/document.h></code></p>
<div class="dynheader">
Inheritance diagram for xmlpp::Document:</div>
<div class="dyncontent">
<div class="center"><img src="classxmlpp_1_1Document__inherit__graph.png" border="0" usemap="#xmlpp_1_1Document_inherit__map" alt="Inheritance graph"/></div>
<map name="xmlpp_1_1Document_inherit__map" id="xmlpp_1_1Document_inherit__map">
<area shape="rect" id="node2" href="classxmlpp_1_1NonCopyable.html" title="A base for classes which cannot be copied. " alt="" coords="5,5,160,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8c5c6692e195dcf3aee88dc492f9efed"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a8c5c6692e195dcf3aee88dc492f9efed">Document</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& version="1.0")</td></tr>
<tr class="memdesc:a8c5c6692e195dcf3aee88dc492f9efed"><td class="mdescLeft"> </td><td class="mdescRight">Create a new document. <a href="#a8c5c6692e195dcf3aee88dc492f9efed">More...</a><br /></td></tr>
<tr class="separator:a8c5c6692e195dcf3aee88dc492f9efed"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac18dbf6e4c404dac08a0784c553c5e88"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#ac18dbf6e4c404dac08a0784c553c5e88">Document</a> (_xmlDoc* doc)</td></tr>
<tr class="memdesc:ac18dbf6e4c404dac08a0784c553c5e88"><td class="mdescLeft"> </td><td class="mdescRight">Create a new C++ wrapper for an xmlDoc struct. <a href="#ac18dbf6e4c404dac08a0784c553c5e88">More...</a><br /></td></tr>
<tr class="separator:ac18dbf6e4c404dac08a0784c553c5e88"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aee0af647f8b997f0ce91c5f8ef26d6f5"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#aee0af647f8b997f0ce91c5f8ef26d6f5">~Document</a> () override</td></tr>
<tr class="separator:aee0af647f8b997f0ce91c5f8ef26d6f5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2d5ebd0f41215d54b9c96dd4ddb49ede"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1CommentNode.html">CommentNode</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a2d5ebd0f41215d54b9c96dd4ddb49ede">add_comment</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& content)</td></tr>
<tr class="memdesc:a2d5ebd0f41215d54b9c96dd4ddb49ede"><td class="mdescLeft"> </td><td class="mdescRight">Append a new comment node. <a href="#a2d5ebd0f41215d54b9c96dd4ddb49ede">More...</a><br /></td></tr>
<tr class="separator:a2d5ebd0f41215d54b9c96dd4ddb49ede"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aeaa438c9764e7d41f3d2f63ace6dab81"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1ProcessingInstructionNode.html">ProcessingInstructionNode</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#aeaa438c9764e7d41f3d2f63ace6dab81">add_processing_instruction</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& name, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& content)</td></tr>
<tr class="memdesc:aeaa438c9764e7d41f3d2f63ace6dab81"><td class="mdescLeft"> </td><td class="mdescRight">Append a new processing instruction node. <a href="#aeaa438c9764e7d41f3d2f63ace6dab81">More...</a><br /></td></tr>
<tr class="separator:aeaa438c9764e7d41f3d2f63ace6dab81"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1ebb73b9ac51ca929bfd38f359964a59"><td class="memItemLeft" align="right" valign="top">_xmlDoc* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a1ebb73b9ac51ca929bfd38f359964a59">cobj</a> ()</td></tr>
<tr class="memdesc:a1ebb73b9ac51ca929bfd38f359964a59"><td class="mdescLeft"> </td><td class="mdescRight">Access the underlying libxml implementation. <a href="#a1ebb73b9ac51ca929bfd38f359964a59">More...</a><br /></td></tr>
<tr class="separator:a1ebb73b9ac51ca929bfd38f359964a59"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4cbdce4b14db6b3a393346b5e3034886"><td class="memItemLeft" align="right" valign="top">const _xmlDoc* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a4cbdce4b14db6b3a393346b5e3034886">cobj</a> () const </td></tr>
<tr class="memdesc:a4cbdce4b14db6b3a393346b5e3034886"><td class="mdescLeft"> </td><td class="mdescRight">Access the underlying libxml implementation. <a href="#a4cbdce4b14db6b3a393346b5e3034886">More...</a><br /></td></tr>
<tr class="separator:a4cbdce4b14db6b3a393346b5e3034886"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8552403b511567241856148a6040be23"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a8552403b511567241856148a6040be23">create_root_node</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& name, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& ns_uri=<a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>(), const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& ns_prefix=<a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:a8552403b511567241856148a6040be23"><td class="mdescLeft"> </td><td class="mdescRight">Create the root element node. <a href="#a8552403b511567241856148a6040be23">More...</a><br /></td></tr>
<tr class="separator:a8552403b511567241856148a6040be23"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8085d5e40537e2a674063cbddb39f0b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a8085d5e40537e2a674063cbddb39f0b8">create_root_node_by_import</a> (const <a class="el" href="classxmlpp_1_1Node.html">Node</a>* node, bool recursive=true)</td></tr>
<tr class="memdesc:a8085d5e40537e2a674063cbddb39f0b8"><td class="mdescLeft"> </td><td class="mdescRight">Create a root element node by importing the node from another document, without affecting the source node. <a href="#a8085d5e40537e2a674063cbddb39f0b8">More...</a><br /></td></tr>
<tr class="separator:a8085d5e40537e2a674063cbddb39f0b8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9527fadaffff6138b0b35050370a0e3d"><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a9527fadaffff6138b0b35050370a0e3d">get_encoding</a> () const </td></tr>
<tr class="separator:a9527fadaffff6138b0b35050370a0e3d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae27fb04b1760bcaa58f7e329c98fae47"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Dtd.html">Dtd</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#ae27fb04b1760bcaa58f7e329c98fae47">get_internal_subset</a> () const </td></tr>
<tr class="memdesc:ae27fb04b1760bcaa58f7e329c98fae47"><td class="mdescLeft"> </td><td class="mdescRight">Get the internal subset of this document. <a href="#ae27fb04b1760bcaa58f7e329c98fae47">More...</a><br /></td></tr>
<tr class="separator:ae27fb04b1760bcaa58f7e329c98fae47"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6f4ebd0db42eeca823517dd1bd56d009"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a6f4ebd0db42eeca823517dd1bd56d009">get_root_node</a> () const </td></tr>
<tr class="memdesc:a6f4ebd0db42eeca823517dd1bd56d009"><td class="mdescLeft"> </td><td class="mdescRight">Return the root node. <a href="#a6f4ebd0db42eeca823517dd1bd56d009">More...</a><br /></td></tr>
<tr class="separator:a6f4ebd0db42eeca823517dd1bd56d009"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5fb6c31ae2563c1c33ad3d4192daafe1"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a5fb6c31ae2563c1c33ad3d4192daafe1">process_xinclude</a> (bool generate_xinclude_nodes=true)</td></tr>
<tr class="memdesc:a5fb6c31ae2563c1c33ad3d4192daafe1"><td class="mdescLeft"> </td><td class="mdescRight">Perform XInclude substitution on the XML document. <a href="#a5fb6c31ae2563c1c33ad3d4192daafe1">More...</a><br /></td></tr>
<tr class="separator:a5fb6c31ae2563c1c33ad3d4192daafe1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad56a99bd883672ba5eac51a545fada40"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#ad56a99bd883672ba5eac51a545fada40">set_entity_declaration</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& name, <a class="el" href="namespacexmlpp.html#a0fa47f0fb103cf9ea460a2fef3f5be49">XmlEntityType</a> <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/namespaceGlib_1_1Unicode.html#a042d1c3fdb1a22daf647211210af80c3">type</a>, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& publicId, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& systemId, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& content)</td></tr>
<tr class="memdesc:ad56a99bd883672ba5eac51a545fada40"><td class="mdescLeft"> </td><td class="mdescRight">Add an Entity declaration to the document. <a href="#ad56a99bd883672ba5eac51a545fada40">More...</a><br /></td></tr>
<tr class="separator:ad56a99bd883672ba5eac51a545fada40"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a714dc6c330ae6e00fb285606b8b849a4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a714dc6c330ae6e00fb285606b8b849a4">set_internal_subset</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& name, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& external_id, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& system_id)</td></tr>
<tr class="memdesc:a714dc6c330ae6e00fb285606b8b849a4"><td class="mdescLeft"> </td><td class="mdescRight">Create the internal subset of this document. <a href="#a714dc6c330ae6e00fb285606b8b849a4">More...</a><br /></td></tr>
<tr class="separator:a714dc6c330ae6e00fb285606b8b849a4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adbbcae29bde29501f3dfff71f2e81da2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#adbbcae29bde29501f3dfff71f2e81da2">write_to_file</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& filename, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& encoding=<a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:adbbcae29bde29501f3dfff71f2e81da2"><td class="mdescLeft"> </td><td class="mdescRight">Write the document to a file. <a href="#adbbcae29bde29501f3dfff71f2e81da2">More...</a><br /></td></tr>
<tr class="separator:adbbcae29bde29501f3dfff71f2e81da2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae54075502d81e9d8448e6820bc16eb34"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#ae54075502d81e9d8448e6820bc16eb34">write_to_file_formatted</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& filename, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& encoding=<a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:ae54075502d81e9d8448e6820bc16eb34"><td class="mdescLeft"> </td><td class="mdescRight">Write the document to a file. <a href="#ae54075502d81e9d8448e6820bc16eb34">More...</a><br /></td></tr>
<tr class="separator:ae54075502d81e9d8448e6820bc16eb34"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a55e593694bdcf67f667f1dbe52cd0794"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a55e593694bdcf67f667f1dbe52cd0794">write_to_stream</a> (<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a>& output, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& encoding=<a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:a55e593694bdcf67f667f1dbe52cd0794"><td class="mdescLeft"> </td><td class="mdescRight">Write the document to a <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a>. <a href="#a55e593694bdcf67f667f1dbe52cd0794">More...</a><br /></td></tr>
<tr class="separator:a55e593694bdcf67f667f1dbe52cd0794"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:add90b2d2d0a837df3f3daec6bccaad2c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#add90b2d2d0a837df3f3daec6bccaad2c">write_to_stream_formatted</a> (<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a>& output, const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& encoding=<a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:add90b2d2d0a837df3f3daec6bccaad2c"><td class="mdescLeft"> </td><td class="mdescRight">Write the document to a <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a>. <a href="#add90b2d2d0a837df3f3daec6bccaad2c">More...</a><br /></td></tr>
<tr class="separator:add90b2d2d0a837df3f3daec6bccaad2c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab63344d932c309062769fd98585e9bc1"><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#ab63344d932c309062769fd98585e9bc1">write_to_string</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& encoding=<a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:ab63344d932c309062769fd98585e9bc1"><td class="mdescLeft"> </td><td class="mdescRight">Write the document to the memory. <a href="#ab63344d932c309062769fd98585e9bc1">More...</a><br /></td></tr>
<tr class="separator:ab63344d932c309062769fd98585e9bc1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac1246acf8c7b51855e9eb12eecefa294"><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#ac1246acf8c7b51855e9eb12eecefa294">write_to_string_formatted</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& encoding=<a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr>
<tr class="memdesc:ac1246acf8c7b51855e9eb12eecefa294"><td class="mdescLeft"> </td><td class="mdescRight">Write the document to the memory. <a href="#ac1246acf8c7b51855e9eb12eecefa294">More...</a><br /></td></tr>
<tr class="separator:ac1246acf8c7b51855e9eb12eecefa294"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a6772b76ee685c3755f8a19ce19f48f35"><td class="memItemLeft" align="right" valign="top">_xmlEntity* </td><td class="memItemRight" valign="bottom"><a class="el" href="classxmlpp_1_1Document.html#a6772b76ee685c3755f8a19ce19f48f35">get_entity</a> (const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>& name)</td></tr>
<tr class="memdesc:a6772b76ee685c3755f8a19ce19f48f35"><td class="mdescLeft"> </td><td class="mdescRight">Retrieve an Entity. <a href="#a6772b76ee685c3755f8a19ce19f48f35">More...</a><br /></td></tr>
<tr class="separator:a6772b76ee685c3755f8a19ce19f48f35"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Represents an XML document in the DOM model. </p>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a class="anchor" id="a8c5c6692e195dcf3aee88dc492f9efed"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">xmlpp::Document::Document </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>version</em> = <code>"1.0"</code></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new document. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">version</td><td>XML version. </td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td>If memory allocation fails. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ac18dbf6e4c404dac08a0784c553c5e88"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">xmlpp::Document::Document </td>
<td>(</td>
<td class="paramtype">_xmlDoc * </td>
<td class="paramname"><em>doc</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a new C++ wrapper for an xmlDoc struct. </p>
<p>The created <a class="el" href="classxmlpp_1_1Document.html" title="Represents an XML document in the DOM model. ">xmlpp::Document</a> takes ownership of the xmlDoc. When the <a class="el" href="classxmlpp_1_1Document.html" title="Represents an XML document in the DOM model. ">Document</a> is deleted, so is the xmlDoc and all its nodes. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">doc</td><td>A pointer to an xmlDoc struct. Must not be <code>nullptr</code>. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aee0af647f8b997f0ce91c5f8ef26d6f5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">xmlpp::Document::~Document </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a2d5ebd0f41215d54b9c96dd4ddb49ede"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classxmlpp_1_1CommentNode.html">CommentNode</a>* xmlpp::Document::add_comment </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>content</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Append a new comment node. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">content</td><td>The text. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a2e9978caa82eb11cadccd4d5fc4e690a" title="Set the text of this content node. ">ContentNode::set_content()</a>. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The new comment node. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="aeaa438c9764e7d41f3d2f63ace6dab81"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classxmlpp_1_1ProcessingInstructionNode.html">ProcessingInstructionNode</a>* xmlpp::Document::add_processing_instruction </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>content</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Append a new processing instruction node. </p>
<dl class="since_2_36"><dt><b><a class="el" href="since_2_36.html#_since_2_36000003">Since libxml++ 2.36:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>The name of the application to which the instruction is directed. </td></tr>
<tr><td class="paramname">content</td><td>The content of the instruction. This should be unescaped - see <a class="el" href="classxmlpp_1_1ContentNode.html#a2e9978caa82eb11cadccd4d5fc4e690a" title="Set the text of this content node. ">ContentNode::set_content()</a>. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The new processing instruction node. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a1ebb73b9ac51ca929bfd38f359964a59"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">_xmlDoc* xmlpp::Document::cobj </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Access the underlying libxml implementation. </p>
</div>
</div>
<a class="anchor" id="a4cbdce4b14db6b3a393346b5e3034886"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const _xmlDoc* xmlpp::Document::cobj </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Access the underlying libxml implementation. </p>
</div>
</div>
<a class="anchor" id="a8552403b511567241856148a6040be23"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Document::create_root_node </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>ns_uri</em> = <code><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>()</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>ns_prefix</em> = <code><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>()</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create the root element node. </p>
<p>If the document already contains a root element node, it is replaced, and the old root element node and all its descendants are deleted. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>The node's name. </td></tr>
<tr><td class="paramname">ns_uri</td><td>The namespace URI. A namespace declaration will be added to this node, because it could not have been declared before. </td></tr>
<tr><td class="paramname">ns_prefix</td><td>The namespace prefix to associate with the namespace. If no namespace prefix is specified then the namespace URI will be the default namespace. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the new root node. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td>If memory allocation fails. </td></tr>
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td>If a new namespace node cannot be created. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a8085d5e40537e2a674063cbddb39f0b8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Document::create_root_node_by_import </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classxmlpp_1_1Node.html">Node</a>* </td>
<td class="paramname"><em>node</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>recursive</em> = <code>true</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a root element node by importing the node from another document, without affecting the source node. </p>
<p>If the document already contains a root element node, it is replaced, and the old root element node and all its descendants are deleted. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">node</td><td>The node to copy and insert as the root node of the document. It must be an element node. </td></tr>
<tr><td class="paramname">recursive</td><td>Whether to import the child nodes also. Defaults to true. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the new root node </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td>If the node can't be copied. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a9527fadaffff6138b0b35050370a0e3d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> xmlpp::Document::get_encoding </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>The encoding used in the source from which the document has been loaded. </dd></dl>
</div>
</div>
<a class="anchor" id="a6772b76ee685c3755f8a19ce19f48f35"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">_xmlEntity* xmlpp::Document::get_entity </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieve an Entity. </p>
<p>The entity can be from an external subset or internally declared. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>The name of the entity to get. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the libxml2 entity structure, or <code>nullptr</code> if not found. </dd></dl>
</div>
</div>
<a class="anchor" id="ae27fb04b1760bcaa58f7e329c98fae47"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classxmlpp_1_1Dtd.html">Dtd</a>* xmlpp::Document::get_internal_subset </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the internal subset of this document. </p>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the DTD, or <code>nullptr</code> if not found. </dd></dl>
</div>
</div>
<a class="anchor" id="a6f4ebd0db42eeca823517dd1bd56d009"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classxmlpp_1_1Element.html">Element</a>* xmlpp::Document::get_root_node </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the root node. </p>
<p>This function does <b>not</b> create a default root node if it doesn't exist. </p><dl class="section return"><dt>Returns</dt><dd>A pointer to the root node if it exists, <code>nullptr</code> otherwise. </dd></dl>
</div>
</div>
<a class="anchor" id="a5fb6c31ae2563c1c33ad3d4192daafe1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int xmlpp::Document::process_xinclude </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"><em>generate_xinclude_nodes</em> = <code>true</code></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Perform XInclude substitution on the XML document. </p>
<p>XInclude substitution may both add and delete nodes in the document, as well as change the type of some nodes. All pointers to deleted nodes and nodes whose type is changed become invalid. (The node type represented by an underlying xmlNode struct can change. The type of a C++ wrapper can't change. The old wrapper is deleted, and a new one is created if and when it's required.)</p>
<dl class="since_2_36"><dt><b><a class="el" href="since_2_36.html#_since_2_36000004">Since libxml++ 2.36:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">generate_xinclude_nodes</td><td>Generate <a class="el" href="classxmlpp_1_1XIncludeStart.html" title="XIncludeStart node. ">XIncludeStart</a> and <a class="el" href="classxmlpp_1_1XIncludeEnd.html" title="XIncludeEnd node. ">XIncludeEnd</a> nodes. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The number of substitutions. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ad56a99bd883672ba5eac51a545fada40"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void xmlpp::Document::set_entity_declaration </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacexmlpp.html#a0fa47f0fb103cf9ea460a2fef3f5be49">XmlEntityType</a> </td>
<td class="paramname"><em>type</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>publicId</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>systemId</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>content</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Add an Entity declaration to the document. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>The name of the entity that will be used in an entity reference. </td></tr>
<tr><td class="paramname">type</td><td>The type of entity. </td></tr>
<tr><td class="paramname">publicId</td><td>The public ID of the subset. </td></tr>
<tr><td class="paramname">systemId</td><td>The system ID of the subset. </td></tr>
<tr><td class="paramname">content</td><td>The value of the Entity. In entity reference substitutions, this is the replacement value. </td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a714dc6c330ae6e00fb285606b8b849a4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xmlpp::Document::set_internal_subset </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>external_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>system_id</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Create the internal subset of this document. </p>
<p>If the document already has an internal subset, a new one is not created. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">name</td><td>The DTD name. </td></tr>
<tr><td class="paramname">external_id</td><td>The external (PUBLIC) ID, or an empty string. </td></tr>
<tr><td class="paramname">system_id</td><td>The system ID, or an empty string. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="adbbcae29bde29501f3dfff71f2e81da2"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xmlpp::Document::write_to_file </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>encoding</em> = <code><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>()</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Write the document to a file. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td></td></tr>
<tr><td class="paramname">encoding</td><td>If not provided, UTF-8 is used </td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae54075502d81e9d8448e6820bc16eb34"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xmlpp::Document::write_to_file_formatted </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>encoding</em> = <code><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>()</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Write the document to a file. </p>
<p>The output is formatted by inserting whitespaces, which is easier to read for a human, but may insert unwanted significant whitespaces. Use with care ! </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td></td></tr>
<tr><td class="paramname">encoding</td><td>If not provided, UTF-8 is used </td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a55e593694bdcf67f667f1dbe52cd0794"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xmlpp::Document::write_to_stream </td>
<td>(</td>
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a> & </td>
<td class="paramname"><em>output</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>encoding</em> = <code><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>()</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Write the document to a <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">output</td><td>A reference to the stream in which the document will be written </td></tr>
<tr><td class="paramname">encoding</td><td>If not provided, UTF-8 is used </td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section warning"><dt>Warning</dt><dd>This method is much less efficient than write_to_string if you want to dump the document to a buffer or the standard output. Writing to a fstream is almost as fast as write_to_file </dd></dl>
</div>
</div>
<a class="anchor" id="add90b2d2d0a837df3f3daec6bccaad2c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xmlpp::Document::write_to_stream_formatted </td>
<td>(</td>
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a> & </td>
<td class="paramname"><em>output</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>encoding</em> = <code><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>()</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Write the document to a <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01647.html#ga55d4c0674fbacb7514ae76310aeb4bf8">std::ostream</a>. </p>
<p>The output is formatted by inserting whitespaces, which is easier to read for a human, but may insert unwanted significant whitespaces. Use with care ! </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">output</td><td>A reference to the stream in which the document will be written </td></tr>
<tr><td class="paramname">encoding</td><td>If not provided, UTF-8 is used </td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1internal__error.html">xmlpp::internal_error</a></td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section warning"><dt>Warning</dt><dd>See write_to_stream </dd></dl>
</div>
</div>
<a class="anchor" id="ab63344d932c309062769fd98585e9bc1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> xmlpp::Document::write_to_string </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>encoding</em> = <code><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Write the document to the memory. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">encoding</td><td>If not provided, UTF-8 is used </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The written document. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ac1246acf8c7b51855e9eb12eecefa294"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> xmlpp::Document::write_to_string_formatted </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a> & </td>
<td class="paramname"><em>encoding</em> = <code><a class="elRef" doxygen="glibmm-2.4.tag:http://library.gnome.org/devel/glibmm/unstable/" href="http://library.gnome.org/devel/glibmm/unstable/classGlib_1_1ustring.html">Glib::ustring</a>()</code></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Write the document to the memory. </p>
<p>The output is formatted by inserting whitespaces, which is easier to read for a human, but may insert unwanted significant whitespaces. Use with care ! </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">encoding</td><td>If not provided, UTF-8 is used </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The written document. </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classxmlpp_1_1exception.html" title="Base class for all xmlpp exceptions. ">xmlpp::exception</a></td><td></td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Oct 28 2015 14:41:03 for libxml++ by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
|