libxml-globals.html revision 4826743d1643bd01d5ceaeaf627b0d71b60beb2f
1<HTML 2><HEAD 3><TITLE 4>globals</TITLE 5><META 6NAME="GENERATOR" 7CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+ 8"><LINK 9REL="HOME" 10TITLE="Gnome XML Library Reference Manual" 11HREF="book1.html"><LINK 12REL="UP" 13TITLE="Libxml Library Reference" 14HREF="libxml-lib.html"><LINK 15REL="PREVIOUS" 16TITLE="threads" 17HREF="libxml-threads.html"><LINK 18REL="NEXT" 19TITLE="DOCBparser" 20HREF="libxml-docbparser.html"></HEAD 21><BODY 22CLASS="REFENTRY" 23BGCOLOR="#FFFFFF" 24TEXT="#000000" 25LINK="#0000FF" 26VLINK="#840084" 27ALINK="#0000FF" 28><DIV 29CLASS="NAVHEADER" 30><TABLE 31WIDTH="100%" 32BORDER="0" 33BGCOLOR="#000000" 34CELLPADDING="1" 35CELLSPACING="0" 36><TR 37><TH 38COLSPAN="4" 39ALIGN="center" 40><FONT 41COLOR="#FFFFFF" 42SIZE="5" 43>Gnome XML Library Reference Manual</FONT 44></TH 45></TR 46><TR 47><TD 48WIDTH="25%" 49BGCOLOR="#C00000" 50ALIGN="left" 51><A 52HREF="libxml-threads.html" 53><FONT 54COLOR="#FFFFFF" 55SIZE="3" 56><B 57><<< Previous Page</B 58></FONT 59></A 60></TD 61><TD 62WIDTH="25%" 63BGCOLOR="#0000C0" 64ALIGN="center" 65><FONT 66COLOR="#FFFFFF" 67SIZE="3" 68><B 69><A 70HREF="book1.html" 71><FONT 72COLOR="#FFFFFF" 73SIZE="3" 74><B 75>Home</B 76></FONT 77></A 78></B 79></FONT 80></TD 81><TD 82WIDTH="25%" 83BGCOLOR="#00C000" 84ALIGN="center" 85><FONT 86COLOR="#FFFFFF" 87SIZE="3" 88><B 89><A 90HREF="libxml-lib.html" 91><FONT 92COLOR="#FFFFFF" 93SIZE="3" 94><B 95>Up</B 96></FONT 97></A 98></B 99></FONT 100></TD 101><TD 102WIDTH="25%" 103BGCOLOR="#C00000" 104ALIGN="right" 105><A 106HREF="libxml-docbparser.html" 107><FONT 108COLOR="#FFFFFF" 109SIZE="3" 110><B 111>Next Page >>></B 112></FONT 113></A 114></TD 115></TR 116></TABLE 117></DIV 118><H1 119><A 120NAME="LIBXML-GLOBALS">globals</H1 121><DIV 122CLASS="REFNAMEDIV" 123><A 124NAME="AEN21254" 125></A 126><H2 127>Name</H2 128>globals -- </DIV 129><DIV 130CLASS="REFSYNOPSISDIV" 131><A 132NAME="AEN21257"><H2 133>Synopsis</H2 134><TABLE 135BORDER="0" 136BGCOLOR="#D6E8FF" 137WIDTH="100%" 138CELLPADDING="6" 139><TR 140><TD 141><PRE 142CLASS="SYNOPSIS" 143> 144 145struct <A 146HREF="libxml-globals.html#XMLGLOBALSTATE" 147>xmlGlobalState</A 148>; 149typedef <A 150HREF="libxml-globals.html#XMLGLOBALSTATEPTR" 151>xmlGlobalStatePtr</A 152>; 153void <A 154HREF="libxml-globals.html#XMLINITIALIZEGLOBALSTATE" 155>xmlInitializeGlobalState</A 156> (<A 157HREF="libxml-globals.html#XMLGLOBALSTATEPTR" 158>xmlGlobalStatePtr</A 159> gs); 160#define <A 161HREF="libxml-globals.html#XMLMALLOC" 162>xmlMalloc</A 163> (size) 164#define <A 165HREF="libxml-globals.html#XMLREALLOC" 166>xmlRealloc</A 167> (ptr, size) 168#define <A 169HREF="libxml-globals.html#XMLFREE" 170>xmlFree</A 171> 172#define <A 173HREF="libxml-globals.html#XMLMEMSTRDUP" 174>xmlMemStrdup</A 175> (str) 176#define <A 177HREF="libxml-globals.html#DOCBDEFAULTSAXHANDLER" 178>docbDefaultSAXHandler</A 179> 180#define <A 181HREF="libxml-globals.html#HTMLDEFAULTSAXHANDLER" 182>htmlDefaultSAXHandler</A 183> 184#define <A 185HREF="libxml-globals.html#OLDXMLWDCOMPATIBILITY" 186>oldXMLWDcompatibility</A 187> 188#define <A 189HREF="libxml-globals.html#XMLBUFFERALLOCSCHEME" 190>xmlBufferAllocScheme</A 191> 192#define <A 193HREF="libxml-globals.html#XMLDEFAULTBUFFERSIZE" 194>xmlDefaultBufferSize</A 195> 196#define <A 197HREF="libxml-globals.html#XMLDEFAULTSAXHANDLER" 198>xmlDefaultSAXHandler</A 199> 200#define <A 201HREF="libxml-globals.html#XMLDEFAULTSAXLOCATOR" 202>xmlDefaultSAXLocator</A 203> 204#define <A 205HREF="libxml-globals.html#XMLDOVALIDITYCHECKINGDEFAULTVALUE" 206>xmlDoValidityCheckingDefaultValue</A 207> 208#define <A 209HREF="libxml-globals.html#XMLGENERICERROR" 210>xmlGenericError</A 211> 212#define <A 213HREF="libxml-globals.html#XMLGENERICERRORCONTEXT" 214>xmlGenericErrorContext</A 215> 216#define <A 217HREF="libxml-globals.html#XMLGETWARNINGSDEFAULTVALUE" 218>xmlGetWarningsDefaultValue</A 219> 220#define <A 221HREF="libxml-globals.html#XMLINDENTTREEOUTPUT" 222>xmlIndentTreeOutput</A 223> 224#define <A 225HREF="libxml-globals.html#XMLTREEINDENTSTRING" 226>xmlTreeIndentString</A 227> 228#define <A 229HREF="libxml-globals.html#XMLKEEPBLANKSDEFAULTVALUE" 230>xmlKeepBlanksDefaultValue</A 231> 232#define <A 233HREF="libxml-globals.html#XMLLINENUMBERSDEFAULTVALUE" 234>xmlLineNumbersDefaultValue</A 235> 236#define <A 237HREF="libxml-globals.html#XMLLOADEXTDTDDEFAULTVALUE" 238>xmlLoadExtDtdDefaultValue</A 239> 240#define <A 241HREF="libxml-globals.html#XMLPARSERDEBUGENTITIES" 242>xmlParserDebugEntities</A 243> 244#define <A 245HREF="libxml-globals.html#XMLPARSERVERSION" 246>xmlParserVersion</A 247> 248#define <A 249HREF="libxml-globals.html#XMLPEDANTICPARSERDEFAULTVALUE" 250>xmlPedanticParserDefaultValue</A 251> 252#define <A 253HREF="libxml-globals.html#XMLSAVENOEMPTYTAGS" 254>xmlSaveNoEmptyTags</A 255> 256#define <A 257HREF="libxml-parser.html#XMLSUBSTITUTEENTITIESDEFAULTVALUE" 258>xmlSubstituteEntitiesDefaultValue</A 259></PRE 260></TD 261></TR 262></TABLE 263></DIV 264><DIV 265CLASS="REFSECT1" 266><A 267NAME="AEN21289" 268></A 269><H2 270>Description</H2 271><P 272></P 273></DIV 274><DIV 275CLASS="REFSECT1" 276><A 277NAME="AEN21292" 278></A 279><H2 280>Details</H2 281><DIV 282CLASS="REFSECT2" 283><A 284NAME="AEN21294" 285></A 286><H3 287><A 288NAME="XMLGLOBALSTATE" 289></A 290>struct xmlGlobalState</H3 291><TABLE 292BORDER="0" 293BGCOLOR="#D6E8FF" 294WIDTH="100%" 295CELLPADDING="6" 296><TR 297><TD 298><PRE 299CLASS="PROGRAMLISTING" 300>struct xmlGlobalState 301{ 302 const char *xmlParserVersion; 303 304 xmlSAXLocator xmlDefaultSAXLocator; 305 xmlSAXHandler xmlDefaultSAXHandler; 306 xmlSAXHandler docbDefaultSAXHandler; 307 xmlSAXHandler htmlDefaultSAXHandler; 308 309 xmlFreeFunc xmlFree; 310 xmlMallocFunc xmlMalloc; 311 xmlStrdupFunc xmlMemStrdup; 312 xmlReallocFunc xmlRealloc; 313 314 xmlGenericErrorFunc xmlGenericError; 315 void *xmlGenericErrorContext; 316 317 int oldXMLWDcompatibility; 318 319 xmlBufferAllocationScheme xmlBufferAllocScheme; 320 int xmlDefaultBufferSize; 321 322 int xmlSubstituteEntitiesDefaultValue; 323 int xmlDoValidityCheckingDefaultValue; 324 int xmlGetWarningsDefaultValue; 325 int xmlKeepBlanksDefaultValue; 326 int xmlLineNumbersDefaultValue; 327 int xmlLoadExtDtdDefaultValue; 328 int xmlParserDebugEntities; 329 int xmlPedanticParserDefaultValue; 330 331 int xmlSaveNoEmptyTags; 332 int xmlIndentTreeOutput; 333 const char *xmlTreeIndentString; 334};</PRE 335></TD 336></TR 337></TABLE 338><P 339></P 340></DIV 341><HR><DIV 342CLASS="REFSECT2" 343><A 344NAME="AEN21299" 345></A 346><H3 347><A 348NAME="XMLGLOBALSTATEPTR" 349></A 350>xmlGlobalStatePtr</H3 351><TABLE 352BORDER="0" 353BGCOLOR="#D6E8FF" 354WIDTH="100%" 355CELLPADDING="6" 356><TR 357><TD 358><PRE 359CLASS="PROGRAMLISTING" 360>typedef xmlGlobalState *xmlGlobalStatePtr;</PRE 361></TD 362></TR 363></TABLE 364><P 365></P 366></DIV 367><HR><DIV 368CLASS="REFSECT2" 369><A 370NAME="AEN21304" 371></A 372><H3 373><A 374NAME="XMLINITIALIZEGLOBALSTATE" 375></A 376>xmlInitializeGlobalState ()</H3 377><TABLE 378BORDER="0" 379BGCOLOR="#D6E8FF" 380WIDTH="100%" 381CELLPADDING="6" 382><TR 383><TD 384><PRE 385CLASS="PROGRAMLISTING" 386>void xmlInitializeGlobalState (<A 387HREF="libxml-globals.html#XMLGLOBALSTATEPTR" 388>xmlGlobalStatePtr</A 389> gs);</PRE 390></TD 391></TR 392></TABLE 393><P 394><A 395HREF="libxml-globals.html#XMLINITIALIZEGLOBALSTATE" 396>xmlInitializeGlobalState</A 397>() initialize a global state with all the 398default values of the library.</P 399><P 400></P 401><DIV 402CLASS="INFORMALTABLE" 403><A 404NAME="AEN21312"><P 405></P 406><TABLE 407BORDER="0" 408WIDTH="100%" 409BGCOLOR="#FFD0D0" 410CELLSPACING="0" 411CELLPADDING="4" 412CLASS="CALSTABLE" 413><TBODY 414><TR 415><TD 416WIDTH="20%" 417ALIGN="RIGHT" 418VALIGN="TOP" 419><TT 420CLASS="PARAMETER" 421><I 422>gs</I 423></TT 424> :</TD 425><TD 426WIDTH="80%" 427ALIGN="LEFT" 428VALIGN="TOP" 429> a pointer to a newly allocated global state</TD 430></TR 431></TBODY 432></TABLE 433><P 434></P 435></DIV 436></DIV 437><HR><DIV 438CLASS="REFSECT2" 439><A 440NAME="AEN21321" 441></A 442><H3 443><A 444NAME="XMLMALLOC" 445></A 446>xmlMalloc()</H3 447><TABLE 448BORDER="0" 449BGCOLOR="#D6E8FF" 450WIDTH="100%" 451CELLPADDING="6" 452><TR 453><TD 454><PRE 455CLASS="PROGRAMLISTING" 456>#define xmlMalloc(size)</PRE 457></TD 458></TR 459></TABLE 460><P 461>Wrapper for the <GTKDOCLINK 462HREF="MALLOC" 463>malloc</GTKDOCLINK 464>() function used in the XML library.</P 465><P 466></P 467><DIV 468CLASS="INFORMALTABLE" 469><A 470NAME="AEN21328"><P 471></P 472><TABLE 473BORDER="0" 474WIDTH="100%" 475BGCOLOR="#FFD0D0" 476CELLSPACING="0" 477CELLPADDING="4" 478CLASS="CALSTABLE" 479><TBODY 480><TR 481><TD 482WIDTH="20%" 483ALIGN="RIGHT" 484VALIGN="TOP" 485><TT 486CLASS="PARAMETER" 487><I 488>size</I 489></TT 490> :</TD 491><TD 492WIDTH="80%" 493ALIGN="LEFT" 494VALIGN="TOP" 495> </TD 496></TR 497></TBODY 498></TABLE 499><P 500></P 501></DIV 502></DIV 503><HR><DIV 504CLASS="REFSECT2" 505><A 506NAME="AEN21337" 507></A 508><H3 509><A 510NAME="XMLREALLOC" 511></A 512>xmlRealloc()</H3 513><TABLE 514BORDER="0" 515BGCOLOR="#D6E8FF" 516WIDTH="100%" 517CELLPADDING="6" 518><TR 519><TD 520><PRE 521CLASS="PROGRAMLISTING" 522>#define xmlRealloc(ptr, size)</PRE 523></TD 524></TR 525></TABLE 526><P 527>Wrapper for the <GTKDOCLINK 528HREF="REALLOC" 529>realloc</GTKDOCLINK 530>() function used in the XML library.</P 531><P 532></P 533><DIV 534CLASS="INFORMALTABLE" 535><A 536NAME="AEN21344"><P 537></P 538><TABLE 539BORDER="0" 540WIDTH="100%" 541BGCOLOR="#FFD0D0" 542CELLSPACING="0" 543CELLPADDING="4" 544CLASS="CALSTABLE" 545><TBODY 546><TR 547><TD 548WIDTH="20%" 549ALIGN="RIGHT" 550VALIGN="TOP" 551><TT 552CLASS="PARAMETER" 553><I 554>ptr</I 555></TT 556> :</TD 557><TD 558WIDTH="80%" 559ALIGN="LEFT" 560VALIGN="TOP" 561> </TD 562></TR 563><TR 564><TD 565WIDTH="20%" 566ALIGN="RIGHT" 567VALIGN="TOP" 568><TT 569CLASS="PARAMETER" 570><I 571>size</I 572></TT 573> :</TD 574><TD 575WIDTH="80%" 576ALIGN="LEFT" 577VALIGN="TOP" 578> </TD 579></TR 580></TBODY 581></TABLE 582><P 583></P 584></DIV 585></DIV 586><HR><DIV 587CLASS="REFSECT2" 588><A 589NAME="AEN21357" 590></A 591><H3 592><A 593NAME="XMLFREE" 594></A 595>xmlFree</H3 596><TABLE 597BORDER="0" 598BGCOLOR="#D6E8FF" 599WIDTH="100%" 600CELLPADDING="6" 601><TR 602><TD 603><PRE 604CLASS="PROGRAMLISTING" 605>#define xmlFree</PRE 606></TD 607></TR 608></TABLE 609><P 610>The variable holding the libxml <GTKDOCLINK 611HREF="FREE" 612>free</GTKDOCLINK 613>() implementation</P 614><P 615></P 616></DIV 617><HR><DIV 618CLASS="REFSECT2" 619><A 620NAME="AEN21364" 621></A 622><H3 623><A 624NAME="XMLMEMSTRDUP" 625></A 626>xmlMemStrdup()</H3 627><TABLE 628BORDER="0" 629BGCOLOR="#D6E8FF" 630WIDTH="100%" 631CELLPADDING="6" 632><TR 633><TD 634><PRE 635CLASS="PROGRAMLISTING" 636>#define xmlMemStrdup(str)</PRE 637></TD 638></TR 639></TABLE 640><P 641>Wrapper for the <GTKDOCLINK 642HREF="STRDUP" 643>strdup</GTKDOCLINK 644>() function, <A 645HREF="libxml-parser.html#XMLSTRDUP" 646>xmlStrdup</A 647>() is usually preferred.</P 648><P 649></P 650><DIV 651CLASS="INFORMALTABLE" 652><A 653NAME="AEN21372"><P 654></P 655><TABLE 656BORDER="0" 657WIDTH="100%" 658BGCOLOR="#FFD0D0" 659CELLSPACING="0" 660CELLPADDING="4" 661CLASS="CALSTABLE" 662><TBODY 663><TR 664><TD 665WIDTH="20%" 666ALIGN="RIGHT" 667VALIGN="TOP" 668><TT 669CLASS="PARAMETER" 670><I 671>str</I 672></TT 673> :</TD 674><TD 675WIDTH="80%" 676ALIGN="LEFT" 677VALIGN="TOP" 678> </TD 679></TR 680></TBODY 681></TABLE 682><P 683></P 684></DIV 685></DIV 686><HR><DIV 687CLASS="REFSECT2" 688><A 689NAME="AEN21381" 690></A 691><H3 692><A 693NAME="DOCBDEFAULTSAXHANDLER" 694></A 695>docbDefaultSAXHandler</H3 696><TABLE 697BORDER="0" 698BGCOLOR="#D6E8FF" 699WIDTH="100%" 700CELLPADDING="6" 701><TR 702><TD 703><PRE 704CLASS="PROGRAMLISTING" 705>#define docbDefaultSAXHandler</PRE 706></TD 707></TR 708></TABLE 709><P 710>Default handler for SGML DocBook, builds the DOM tree</P 711><P 712></P 713></DIV 714><HR><DIV 715CLASS="REFSECT2" 716><A 717NAME="AEN21387" 718></A 719><H3 720><A 721NAME="HTMLDEFAULTSAXHANDLER" 722></A 723>htmlDefaultSAXHandler</H3 724><TABLE 725BORDER="0" 726BGCOLOR="#D6E8FF" 727WIDTH="100%" 728CELLPADDING="6" 729><TR 730><TD 731><PRE 732CLASS="PROGRAMLISTING" 733>#define htmlDefaultSAXHandler</PRE 734></TD 735></TR 736></TABLE 737><P 738>Default handler for HTML, builds the DOM tree</P 739><P 740></P 741></DIV 742><HR><DIV 743CLASS="REFSECT2" 744><A 745NAME="AEN21393" 746></A 747><H3 748><A 749NAME="OLDXMLWDCOMPATIBILITY" 750></A 751>oldXMLWDcompatibility</H3 752><TABLE 753BORDER="0" 754BGCOLOR="#D6E8FF" 755WIDTH="100%" 756CELLPADDING="6" 757><TR 758><TD 759><PRE 760CLASS="PROGRAMLISTING" 761>#define oldXMLWDcompatibility</PRE 762></TD 763></TR 764></TABLE 765><P 766>Global setting, DEPRECATED.</P 767><P 768></P 769></DIV 770><HR><DIV 771CLASS="REFSECT2" 772><A 773NAME="AEN21399" 774></A 775><H3 776><A 777NAME="XMLBUFFERALLOCSCHEME" 778></A 779>xmlBufferAllocScheme</H3 780><TABLE 781BORDER="0" 782BGCOLOR="#D6E8FF" 783WIDTH="100%" 784CELLPADDING="6" 785><TR 786><TD 787><PRE 788CLASS="PROGRAMLISTING" 789>#define xmlBufferAllocScheme</PRE 790></TD 791></TR 792></TABLE 793><P 794>Global setting, default allocation policy for buffers, default is 795XML_BUFFER_ALLOC_EXACT</P 796><P 797></P 798></DIV 799><HR><DIV 800CLASS="REFSECT2" 801><A 802NAME="AEN21405" 803></A 804><H3 805><A 806NAME="XMLDEFAULTBUFFERSIZE" 807></A 808>xmlDefaultBufferSize</H3 809><TABLE 810BORDER="0" 811BGCOLOR="#D6E8FF" 812WIDTH="100%" 813CELLPADDING="6" 814><TR 815><TD 816><PRE 817CLASS="PROGRAMLISTING" 818>#define xmlDefaultBufferSize</PRE 819></TD 820></TR 821></TABLE 822><P 823>Global setting, default buffer size. Default value is BASE_BUFFER_SIZE</P 824><P 825></P 826></DIV 827><HR><DIV 828CLASS="REFSECT2" 829><A 830NAME="AEN21411" 831></A 832><H3 833><A 834NAME="XMLDEFAULTSAXHANDLER" 835></A 836>xmlDefaultSAXHandler</H3 837><TABLE 838BORDER="0" 839BGCOLOR="#D6E8FF" 840WIDTH="100%" 841CELLPADDING="6" 842><TR 843><TD 844><PRE 845CLASS="PROGRAMLISTING" 846>#define xmlDefaultSAXHandler</PRE 847></TD 848></TR 849></TABLE 850><P 851>Default handler for XML, builds the DOM tree</P 852><P 853></P 854></DIV 855><HR><DIV 856CLASS="REFSECT2" 857><A 858NAME="AEN21417" 859></A 860><H3 861><A 862NAME="XMLDEFAULTSAXLOCATOR" 863></A 864>xmlDefaultSAXLocator</H3 865><TABLE 866BORDER="0" 867BGCOLOR="#D6E8FF" 868WIDTH="100%" 869CELLPADDING="6" 870><TR 871><TD 872><PRE 873CLASS="PROGRAMLISTING" 874>#define xmlDefaultSAXLocator</PRE 875></TD 876></TR 877></TABLE 878><P 879>The default SAX Locator 880{ getPublicId, getSystemId, getLineNumber, getColumnNumber}</P 881><P 882></P 883></DIV 884><HR><DIV 885CLASS="REFSECT2" 886><A 887NAME="AEN21423" 888></A 889><H3 890><A 891NAME="XMLDOVALIDITYCHECKINGDEFAULTVALUE" 892></A 893>xmlDoValidityCheckingDefaultValue</H3 894><TABLE 895BORDER="0" 896BGCOLOR="#D6E8FF" 897WIDTH="100%" 898CELLPADDING="6" 899><TR 900><TD 901><PRE 902CLASS="PROGRAMLISTING" 903>#define xmlDoValidityCheckingDefaultValue</PRE 904></TD 905></TR 906></TABLE 907><P 908>Global setting, indicate that the parser should work in validating mode. 909Disabled by default.</P 910><P 911></P 912></DIV 913><HR><DIV 914CLASS="REFSECT2" 915><A 916NAME="AEN21429" 917></A 918><H3 919><A 920NAME="XMLGENERICERROR" 921></A 922>xmlGenericError</H3 923><TABLE 924BORDER="0" 925BGCOLOR="#D6E8FF" 926WIDTH="100%" 927CELLPADDING="6" 928><TR 929><TD 930><PRE 931CLASS="PROGRAMLISTING" 932>#define xmlGenericError</PRE 933></TD 934></TR 935></TABLE 936><P 937>Global setting: function used for generic error callbacks</P 938><P 939></P 940></DIV 941><HR><DIV 942CLASS="REFSECT2" 943><A 944NAME="AEN21435" 945></A 946><H3 947><A 948NAME="XMLGENERICERRORCONTEXT" 949></A 950>xmlGenericErrorContext</H3 951><TABLE 952BORDER="0" 953BGCOLOR="#D6E8FF" 954WIDTH="100%" 955CELLPADDING="6" 956><TR 957><TD 958><PRE 959CLASS="PROGRAMLISTING" 960>#define xmlGenericErrorContext</PRE 961></TD 962></TR 963></TABLE 964><P 965>Global setting passed to generic error callbacks</P 966><P 967></P 968></DIV 969><HR><DIV 970CLASS="REFSECT2" 971><A 972NAME="AEN21441" 973></A 974><H3 975><A 976NAME="XMLGETWARNINGSDEFAULTVALUE" 977></A 978>xmlGetWarningsDefaultValue</H3 979><TABLE 980BORDER="0" 981BGCOLOR="#D6E8FF" 982WIDTH="100%" 983CELLPADDING="6" 984><TR 985><TD 986><PRE 987CLASS="PROGRAMLISTING" 988>#define xmlGetWarningsDefaultValue</PRE 989></TD 990></TR 991></TABLE 992><P 993>Global setting, indicate that the parser should provide warnings. 994Activated by default.</P 995><P 996></P 997></DIV 998><HR><DIV 999CLASS="REFSECT2" 1000><A 1001NAME="AEN21447" 1002></A 1003><H3 1004><A 1005NAME="XMLINDENTTREEOUTPUT" 1006></A 1007>xmlIndentTreeOutput</H3 1008><TABLE 1009BORDER="0" 1010BGCOLOR="#D6E8FF" 1011WIDTH="100%" 1012CELLPADDING="6" 1013><TR 1014><TD 1015><PRE 1016CLASS="PROGRAMLISTING" 1017>#define xmlIndentTreeOutput</PRE 1018></TD 1019></TR 1020></TABLE 1021><P 1022>Global setting, asking the serializer to indent the output tree by default 1023Enabled by default</P 1024><P 1025></P 1026></DIV 1027><HR><DIV 1028CLASS="REFSECT2" 1029><A 1030NAME="AEN21453" 1031></A 1032><H3 1033><A 1034NAME="XMLTREEINDENTSTRING" 1035></A 1036>xmlTreeIndentString</H3 1037><TABLE 1038BORDER="0" 1039BGCOLOR="#D6E8FF" 1040WIDTH="100%" 1041CELLPADDING="6" 1042><TR 1043><TD 1044><PRE 1045CLASS="PROGRAMLISTING" 1046>#define xmlTreeIndentString</PRE 1047></TD 1048></TR 1049></TABLE 1050><P 1051>The string used to do one-level indent. By default is equal to " " (two spaces)</P 1052><P 1053></P 1054></DIV 1055><HR><DIV 1056CLASS="REFSECT2" 1057><A 1058NAME="AEN21459" 1059></A 1060><H3 1061><A 1062NAME="XMLKEEPBLANKSDEFAULTVALUE" 1063></A 1064>xmlKeepBlanksDefaultValue</H3 1065><TABLE 1066BORDER="0" 1067BGCOLOR="#D6E8FF" 1068WIDTH="100%" 1069CELLPADDING="6" 1070><TR 1071><TD 1072><PRE 1073CLASS="PROGRAMLISTING" 1074>#define xmlKeepBlanksDefaultValue</PRE 1075></TD 1076></TR 1077></TABLE 1078><P 1079>Global setting, indicate that the parser should keep all blanks 1080nodes found in the content 1081Activated by default, this is actually needed to have the parser 1082conformant to the XML Recommendation, however the option is kept 1083for some applications since this was libxml1 default behaviour.</P 1084><P 1085></P 1086></DIV 1087><HR><DIV 1088CLASS="REFSECT2" 1089><A 1090NAME="AEN21465" 1091></A 1092><H3 1093><A 1094NAME="XMLLINENUMBERSDEFAULTVALUE" 1095></A 1096>xmlLineNumbersDefaultValue</H3 1097><TABLE 1098BORDER="0" 1099BGCOLOR="#D6E8FF" 1100WIDTH="100%" 1101CELLPADDING="6" 1102><TR 1103><TD 1104><PRE 1105CLASS="PROGRAMLISTING" 1106>#define xmlLineNumbersDefaultValue</PRE 1107></TD 1108></TR 1109></TABLE 1110><P 1111>Global setting, indicate that the parser should store the line number 1112in the content field of elements in the DOM tree. 1113Disabled by default since this may not be safe for old classes of 1114applicaton.</P 1115><P 1116></P 1117></DIV 1118><HR><DIV 1119CLASS="REFSECT2" 1120><A 1121NAME="AEN21471" 1122></A 1123><H3 1124><A 1125NAME="XMLLOADEXTDTDDEFAULTVALUE" 1126></A 1127>xmlLoadExtDtdDefaultValue</H3 1128><TABLE 1129BORDER="0" 1130BGCOLOR="#D6E8FF" 1131WIDTH="100%" 1132CELLPADDING="6" 1133><TR 1134><TD 1135><PRE 1136CLASS="PROGRAMLISTING" 1137>#define xmlLoadExtDtdDefaultValue</PRE 1138></TD 1139></TR 1140></TABLE 1141><P 1142>Global setting, indicate that the parser should load DTD while not 1143validating. 1144Disabled by default.</P 1145><P 1146></P 1147></DIV 1148><HR><DIV 1149CLASS="REFSECT2" 1150><A 1151NAME="AEN21477" 1152></A 1153><H3 1154><A 1155NAME="XMLPARSERDEBUGENTITIES" 1156></A 1157>xmlParserDebugEntities</H3 1158><TABLE 1159BORDER="0" 1160BGCOLOR="#D6E8FF" 1161WIDTH="100%" 1162CELLPADDING="6" 1163><TR 1164><TD 1165><PRE 1166CLASS="PROGRAMLISTING" 1167>#define xmlParserDebugEntities</PRE 1168></TD 1169></TR 1170></TABLE 1171><P 1172>Global setting, asking the parser to print out debugging informations. 1173while handling entities. 1174Disabled by default</P 1175><P 1176></P 1177></DIV 1178><HR><DIV 1179CLASS="REFSECT2" 1180><A 1181NAME="AEN21483" 1182></A 1183><H3 1184><A 1185NAME="XMLPARSERVERSION" 1186></A 1187>xmlParserVersion</H3 1188><TABLE 1189BORDER="0" 1190BGCOLOR="#D6E8FF" 1191WIDTH="100%" 1192CELLPADDING="6" 1193><TR 1194><TD 1195><PRE 1196CLASS="PROGRAMLISTING" 1197>#define xmlParserVersion</PRE 1198></TD 1199></TR 1200></TABLE 1201><P 1202>Constant string describing the internal version of the library</P 1203><P 1204></P 1205></DIV 1206><HR><DIV 1207CLASS="REFSECT2" 1208><A 1209NAME="AEN21489" 1210></A 1211><H3 1212><A 1213NAME="XMLPEDANTICPARSERDEFAULTVALUE" 1214></A 1215>xmlPedanticParserDefaultValue</H3 1216><TABLE 1217BORDER="0" 1218BGCOLOR="#D6E8FF" 1219WIDTH="100%" 1220CELLPADDING="6" 1221><TR 1222><TD 1223><PRE 1224CLASS="PROGRAMLISTING" 1225>#define xmlPedanticParserDefaultValue</PRE 1226></TD 1227></TR 1228></TABLE 1229><P 1230>Global setting, indicate that the parser be pedantic 1231Disabled by default.</P 1232><P 1233></P 1234></DIV 1235><HR><DIV 1236CLASS="REFSECT2" 1237><A 1238NAME="AEN21495" 1239></A 1240><H3 1241><A 1242NAME="XMLSAVENOEMPTYTAGS" 1243></A 1244>xmlSaveNoEmptyTags</H3 1245><TABLE 1246BORDER="0" 1247BGCOLOR="#D6E8FF" 1248WIDTH="100%" 1249CELLPADDING="6" 1250><TR 1251><TD 1252><PRE 1253CLASS="PROGRAMLISTING" 1254>#define xmlSaveNoEmptyTags</PRE 1255></TD 1256></TR 1257></TABLE 1258><P 1259>Global setting, asking the serializer to not output empty tags 1260as <empty/> but <empty></empty>. those two forms are undistinguishable 1261once parsed. 1262Disabled by default</P 1263><P 1264></P 1265></DIV 1266><HR><DIV 1267CLASS="REFSECT2" 1268><A 1269NAME="AEN21501" 1270></A 1271><H3 1272><A 1273NAME="XMLSUBSTITUTEENTITIESDEFAULTVALUE" 1274></A 1275>xmlSubstituteEntitiesDefaultValue</H3 1276><TABLE 1277BORDER="0" 1278BGCOLOR="#D6E8FF" 1279WIDTH="100%" 1280CELLPADDING="6" 1281><TR 1282><TD 1283><PRE 1284CLASS="PROGRAMLISTING" 1285>#define xmlSubstituteEntitiesDefaultValue</PRE 1286></TD 1287></TR 1288></TABLE 1289><P 1290>Global variable controlling the entity substitution default behavior.</P 1291><P 1292></P 1293></DIV 1294></DIV 1295><DIV 1296CLASS="NAVFOOTER" 1297><BR 1298CLEAR="all"><BR><TABLE 1299WIDTH="100%" 1300BORDER="0" 1301BGCOLOR="#000000" 1302CELLPADDING="1" 1303CELLSPACING="0" 1304><TR 1305><TD 1306WIDTH="25%" 1307BGCOLOR="#C00000" 1308ALIGN="left" 1309><A 1310HREF="libxml-threads.html" 1311><FONT 1312COLOR="#FFFFFF" 1313SIZE="3" 1314><B 1315><<< Previous Page</B 1316></FONT 1317></A 1318></TD 1319><TD 1320WIDTH="25%" 1321BGCOLOR="#0000C0" 1322ALIGN="center" 1323><FONT 1324COLOR="#FFFFFF" 1325SIZE="3" 1326><B 1327><A 1328HREF="book1.html" 1329><FONT 1330COLOR="#FFFFFF" 1331SIZE="3" 1332><B 1333>Home</B 1334></FONT 1335></A 1336></B 1337></FONT 1338></TD 1339><TD 1340WIDTH="25%" 1341BGCOLOR="#00C000" 1342ALIGN="center" 1343><FONT 1344COLOR="#FFFFFF" 1345SIZE="3" 1346><B 1347><A 1348HREF="libxml-lib.html" 1349><FONT 1350COLOR="#FFFFFF" 1351SIZE="3" 1352><B 1353>Up</B 1354></FONT 1355></A 1356></B 1357></FONT 1358></TD 1359><TD 1360WIDTH="25%" 1361BGCOLOR="#C00000" 1362ALIGN="right" 1363><A 1364HREF="libxml-docbparser.html" 1365><FONT 1366COLOR="#FFFFFF" 1367SIZE="3" 1368><B 1369>Next Page >>></B 1370></FONT 1371></A 1372></TD 1373></TR 1374><TR 1375><TD 1376COLSPAN="2" 1377ALIGN="left" 1378><FONT 1379COLOR="#FFFFFF" 1380SIZE="3" 1381><B 1382>threads</B 1383></FONT 1384></TD 1385><TD 1386COLSPAN="2" 1387ALIGN="right" 1388><FONT 1389COLOR="#FFFFFF" 1390SIZE="3" 1391><B 1392>DOCBparser</B 1393></FONT 1394></TD 1395></TR 1396></TABLE 1397></DIV 1398></BODY 1399></HTML 1400>