Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame^] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>globals</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css"> |
| 3 | .synopsis, .classsynopsis { |
| 4 | background: #eeeeee; |
| 5 | border: solid 1px #aaaaaa; |
| 6 | padding: 0.5em; |
| 7 | } |
| 8 | .programlisting { |
| 9 | background: #eeeeff; |
| 10 | border: solid 1px #aaaaff; |
| 11 | padding: 0.5em; |
| 12 | } |
| 13 | .variablelist { |
| 14 | padding: 4px; |
| 15 | margin-left: 3em; |
| 16 | } |
| 17 | .navigation { |
| 18 | background: #ffeeee; |
| 19 | border: solid 1px #ffaaaa; |
| 20 | margin-top: 0.5em; |
| 21 | margin-bottom: 0.5em; |
| 22 | } |
| 23 | .navigation a { |
| 24 | color: #770000; |
| 25 | } |
| 26 | .navigation a:visited { |
| 27 | color: #550000; |
| 28 | } |
| 29 | .navigation .title { |
| 30 | font-size: 200%; |
| 31 | } |
| 32 | </style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="libxml-lib.html" title="Libxml Library Reference"><link rel="previous" href="libxml-threads.html" title="threads"><link rel="next" href="libxml-DOCBparser.html" title="DOCBparser"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-threads.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="libxml-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th><td><a accesskey="n" href="libxml-DOCBparser.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="refentry" lang="en"><a name="libxml-globals"></a><div class="titlepage"></div><div class="refnamediv"><h2>globals</h2><p>globals — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis"> |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 33 | |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame^] | 34 | |
| 35 | |
| 36 | void (<a href="libxml-globals.html#xmlRegisterNodeFunc">*xmlRegisterNodeFunc</a>) (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node); |
| 37 | void (<a href="libxml-globals.html#xmlDeregisterNodeFunc">*xmlDeregisterNodeFunc</a>) (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node); |
| 38 | struct <a href="libxml-globals.html#xmlGlobalState">xmlGlobalState</a>; |
| 39 | typedef <a href="libxml-globals.html#xmlGlobalStatePtr">xmlGlobalStatePtr</a>; |
| 40 | void <a href="libxml-globals.html#xmlInitializeGlobalState">xmlInitializeGlobalState</a> (<a href="libxml-globals.html#xmlGlobalStatePtr">xmlGlobalStatePtr</a> gs); |
| 41 | <a href="libxml-globals.html#xmlRegisterNodeFunc">xmlRegisterNodeFunc</a> <a href="libxml-globals.html#xmlRegisterNodeDefault">xmlRegisterNodeDefault</a> (<a href="libxml-globals.html#xmlRegisterNodeFunc">xmlRegisterNodeFunc</a> func); |
| 42 | <a href="libxml-globals.html#xmlDeregisterNodeFunc">xmlDeregisterNodeFunc</a> <a href="libxml-globals.html#xmlDeregisterNodeDefault">xmlDeregisterNodeDefault</a> |
| 43 | (<a href="libxml-globals.html#xmlDeregisterNodeFunc">xmlDeregisterNodeFunc</a> func); |
| 44 | #define <a href="libxml-globals.html#xmlMalloc">xmlMalloc</a> (size) |
| 45 | #define <a href="libxml-globals.html#xmlMallocAtomic">xmlMallocAtomic</a> (size) |
| 46 | #define <a href="libxml-globals.html#xmlRealloc">xmlRealloc</a> (ptr, size) |
| 47 | #define <a href="libxml-globals.html#xmlFree">xmlFree</a> |
| 48 | #define <a href="libxml-globals.html#xmlMemStrdup">xmlMemStrdup</a> (str) |
| 49 | #define <a href="libxml-globals.html#docbDefaultSAXHandler">docbDefaultSAXHandler</a> |
| 50 | #define <a href="libxml-globals.html#htmlDefaultSAXHandler">htmlDefaultSAXHandler</a> |
| 51 | #define <a href="libxml-globals.html#oldXMLWDcompatibility">oldXMLWDcompatibility</a> |
| 52 | #define <a href="libxml-globals.html#xmlBufferAllocScheme">xmlBufferAllocScheme</a> |
| 53 | #define <a href="libxml-globals.html#xmlDefaultBufferSize">xmlDefaultBufferSize</a> |
| 54 | #define <a href="libxml-globals.html#xmlDefaultSAXHandler">xmlDefaultSAXHandler</a> |
| 55 | #define <a href="libxml-globals.html#xmlDefaultSAXLocator">xmlDefaultSAXLocator</a> |
| 56 | #define <a href="libxml-globals.html#xmlDoValidityCheckingDefaultValue">xmlDoValidityCheckingDefaultValue</a> |
| 57 | #define <a href="libxml-globals.html#xmlGenericError">xmlGenericError</a> |
| 58 | #define <a href="libxml-globals.html#xmlGenericErrorContext">xmlGenericErrorContext</a> |
| 59 | #define <a href="libxml-globals.html#xmlGetWarningsDefaultValue">xmlGetWarningsDefaultValue</a> |
| 60 | #define <a href="libxml-globals.html#xmlIndentTreeOutput">xmlIndentTreeOutput</a> |
| 61 | #define <a href="libxml-globals.html#xmlTreeIndentString">xmlTreeIndentString</a> |
| 62 | #define <a href="libxml-globals.html#xmlKeepBlanksDefaultValue">xmlKeepBlanksDefaultValue</a> |
| 63 | #define <a href="libxml-globals.html#xmlLineNumbersDefaultValue">xmlLineNumbersDefaultValue</a> |
| 64 | #define <a href="libxml-globals.html#xmlLoadExtDtdDefaultValue">xmlLoadExtDtdDefaultValue</a> |
| 65 | #define <a href="libxml-globals.html#xmlParserDebugEntities">xmlParserDebugEntities</a> |
| 66 | #define <a href="libxml-globals.html#xmlParserVersion">xmlParserVersion</a> |
| 67 | #define <a href="libxml-globals.html#xmlPedanticParserDefaultValue">xmlPedanticParserDefaultValue</a> |
| 68 | #define <a href="libxml-globals.html#xmlSaveNoEmptyTags">xmlSaveNoEmptyTags</a> |
| 69 | #define <a href="libxml-globals.html#xmlSubstituteEntitiesDefaultValue">xmlSubstituteEntitiesDefaultValue</a> |
| 70 | #define <a href="libxml-globals.html#xmlRegisterNodeDefaultValue">xmlRegisterNodeDefaultValue</a> |
| 71 | #define <a href="libxml-globals.html#xmlDeregisterNodeDefaultValue">xmlDeregisterNodeDefaultValue</a> |
| 72 | </pre></div><div class="refsect1" lang="en"><h2>Description</h2><p> |
| 73 | |
| 74 | </p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="xmlRegisterNodeFunc"></a>xmlRegisterNodeFunc ()</h3><pre class="programlisting">void (*xmlRegisterNodeFunc) (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);</pre><p> |
| 75 | |
| 76 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> |
| 77 | |
| 78 | |
| 79 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDeregisterNodeFunc"></a>xmlDeregisterNodeFunc ()</h3><pre class="programlisting">void (*xmlDeregisterNodeFunc) (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);</pre><p> |
| 80 | |
| 81 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> |
| 82 | |
| 83 | |
| 84 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlGlobalState"></a>struct xmlGlobalState</h3><pre class="programlisting">struct xmlGlobalState |
Daniel Veillard | b36d4fe | 2001-11-28 13:40:42 +0000 | [diff] [blame] | 85 | { |
| 86 | const char *xmlParserVersion; |
| 87 | |
| 88 | xmlSAXLocator xmlDefaultSAXLocator; |
| 89 | xmlSAXHandler xmlDefaultSAXHandler; |
| 90 | xmlSAXHandler docbDefaultSAXHandler; |
| 91 | xmlSAXHandler htmlDefaultSAXHandler; |
| 92 | |
| 93 | xmlFreeFunc xmlFree; |
| 94 | xmlMallocFunc xmlMalloc; |
| 95 | xmlStrdupFunc xmlMemStrdup; |
| 96 | xmlReallocFunc xmlRealloc; |
| 97 | |
| 98 | xmlGenericErrorFunc xmlGenericError; |
| 99 | void *xmlGenericErrorContext; |
| 100 | |
| 101 | int oldXMLWDcompatibility; |
| 102 | |
| 103 | xmlBufferAllocationScheme xmlBufferAllocScheme; |
| 104 | int xmlDefaultBufferSize; |
| 105 | |
| 106 | int xmlSubstituteEntitiesDefaultValue; |
| 107 | int xmlDoValidityCheckingDefaultValue; |
| 108 | int xmlGetWarningsDefaultValue; |
| 109 | int xmlKeepBlanksDefaultValue; |
| 110 | int xmlLineNumbersDefaultValue; |
| 111 | int xmlLoadExtDtdDefaultValue; |
| 112 | int xmlParserDebugEntities; |
| 113 | int xmlPedanticParserDefaultValue; |
| 114 | |
| 115 | int xmlSaveNoEmptyTags; |
| 116 | int xmlIndentTreeOutput; |
Daniel Veillard | 539638b | 2002-07-06 19:55:14 +0000 | [diff] [blame] | 117 | const char *xmlTreeIndentString; |
Daniel Veillard | aec6356 | 2003-03-23 20:42:17 +0000 | [diff] [blame] | 118 | |
| 119 | xmlRegisterNodeFunc xmlRegisterNodeDefaultValue; |
| 120 | xmlDeregisterNodeFunc xmlDeregisterNodeDefaultValue; |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame^] | 121 | |
| 122 | xmlMallocFunc xmlMallocAtomic; |
| 123 | }; |
| 124 | </pre><p> |
| 125 | |
| 126 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlGlobalStatePtr"></a>xmlGlobalStatePtr</h3><pre class="programlisting">typedef xmlGlobalState *xmlGlobalStatePtr; |
| 127 | </pre><p> |
| 128 | |
| 129 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlInitializeGlobalState"></a>xmlInitializeGlobalState ()</h3><pre class="programlisting">void xmlInitializeGlobalState (<a href="libxml-globals.html#xmlGlobalStatePtr">xmlGlobalStatePtr</a> gs);</pre><p> |
| 130 | <a href="libxml-globals.html#xmlInitializeGlobalState">xmlInitializeGlobalState</a>() initialize a global state with all the |
| 131 | default values of the library.</p><p> |
| 132 | |
| 133 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>gs</tt></i> :</span></td><td> a pointer to a newly allocated global state |
| 134 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlRegisterNodeDefault"></a>xmlRegisterNodeDefault ()</h3><pre class="programlisting"><a href="libxml-globals.html#xmlRegisterNodeFunc">xmlRegisterNodeFunc</a> xmlRegisterNodeDefault (<a href="libxml-globals.html#xmlRegisterNodeFunc">xmlRegisterNodeFunc</a> func);</pre><p> |
| 135 | Registers a callback for node creation</p><p> |
| 136 | |
| 137 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>func</tt></i> :</span></td><td> function pointer to the new RegisterNodeFunc |
| 138 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the old value of the registration function |
| 139 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDeregisterNodeDefault"></a>xmlDeregisterNodeDefault ()</h3><pre class="programlisting"><a href="libxml-globals.html#xmlDeregisterNodeFunc">xmlDeregisterNodeFunc</a> xmlDeregisterNodeDefault |
| 140 | (<a href="libxml-globals.html#xmlDeregisterNodeFunc">xmlDeregisterNodeFunc</a> func);</pre><p> |
| 141 | Registers a callback for node destruction</p><p> |
| 142 | |
| 143 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>func</tt></i> :</span></td><td> function pointer to the new DeregisterNodeFunc |
| 144 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the previous value of the deregistration function |
| 145 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlMalloc"></a>xmlMalloc()</h3><pre class="programlisting">#define xmlMalloc(size)</pre><p> |
| 146 | Wrapper for the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="malloc">malloc</GTKDOCLINK>() function used in the XML library.</p><p> |
| 147 | |
| 148 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>size</tt></i> :</span></td><td> |
| 149 | |
| 150 | |
| 151 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlMallocAtomic"></a>xmlMallocAtomic()</h3><pre class="programlisting">#define xmlMallocAtomic(size)</pre><p> |
| 152 | Wrapper for the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="malloc">malloc</GTKDOCLINK>() function used in the XML library for allocation |
| 153 | of block not containing pointers to other areas.</p><p> |
| 154 | |
| 155 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>size</tt></i> :</span></td><td> |
| 156 | |
| 157 | |
| 158 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlRealloc"></a>xmlRealloc()</h3><pre class="programlisting">#define xmlRealloc(ptr, size)</pre><p> |
| 159 | Wrapper for the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="realloc">realloc</GTKDOCLINK>() function used in the XML library.</p><p> |
| 160 | |
| 161 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ptr</tt></i> :</span></td><td> |
| 162 | </td></tr><tr><td><span class="term"><i><tt>size</tt></i> :</span></td><td> |
| 163 | |
| 164 | |
| 165 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlFree"></a>xmlFree</h3><pre class="programlisting">#define xmlFree</pre><p> |
| 166 | The variable holding the libxml <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="free">free</GTKDOCLINK>() implementation</p><p> |
| 167 | |
| 168 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlMemStrdup"></a>xmlMemStrdup()</h3><pre class="programlisting">#define xmlMemStrdup(str)</pre><p> |
| 169 | Wrapper for the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="strdup">strdup</GTKDOCLINK>() function, <a href="libxml-parser.html#xmlStrdup">xmlStrdup</a>() is usually preferred.</p><p> |
| 170 | |
| 171 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>str</tt></i> :</span></td><td> |
| 172 | |
| 173 | |
| 174 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="docbDefaultSAXHandler"></a>docbDefaultSAXHandler</h3><pre class="programlisting">#define docbDefaultSAXHandler</pre><p> |
| 175 | Default handler for SGML DocBook, builds the DOM tree</p><p> |
| 176 | |
| 177 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="htmlDefaultSAXHandler"></a>htmlDefaultSAXHandler</h3><pre class="programlisting">#define htmlDefaultSAXHandler</pre><p> |
| 178 | Default handler for HTML, builds the DOM tree</p><p> |
| 179 | |
| 180 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="oldXMLWDcompatibility"></a>oldXMLWDcompatibility</h3><pre class="programlisting">#define oldXMLWDcompatibility</pre><p> |
| 181 | Global setting, DEPRECATED.</p><p> |
| 182 | |
| 183 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlBufferAllocScheme"></a>xmlBufferAllocScheme</h3><pre class="programlisting">#define xmlBufferAllocScheme</pre><p> |
| 184 | Global setting, default allocation policy for buffers, default is |
| 185 | XML_BUFFER_ALLOC_EXACT</p><p> |
| 186 | |
| 187 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDefaultBufferSize"></a>xmlDefaultBufferSize</h3><pre class="programlisting">#define xmlDefaultBufferSize</pre><p> |
| 188 | Global setting, default buffer size. Default value is BASE_BUFFER_SIZE</p><p> |
| 189 | |
| 190 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDefaultSAXHandler"></a>xmlDefaultSAXHandler</h3><pre class="programlisting">#define xmlDefaultSAXHandler</pre><p> |
| 191 | Default handler for XML, builds the DOM tree</p><p> |
| 192 | |
| 193 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDefaultSAXLocator"></a>xmlDefaultSAXLocator</h3><pre class="programlisting">#define xmlDefaultSAXLocator</pre><p> |
| 194 | The default SAX Locator |
| 195 | { getPublicId, getSystemId, getLineNumber, getColumnNumber}</p><p> |
| 196 | |
| 197 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDoValidityCheckingDefaultValue"></a>xmlDoValidityCheckingDefaultValue</h3><pre class="programlisting">#define xmlDoValidityCheckingDefaultValue</pre><p> |
| 198 | Global setting, indicate that the parser should work in validating mode. |
| 199 | Disabled by default.</p><p> |
| 200 | |
| 201 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlGenericError"></a>xmlGenericError</h3><pre class="programlisting">#define xmlGenericError</pre><p> |
| 202 | Global setting: function used for generic error callbacks</p><p> |
| 203 | |
| 204 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlGenericErrorContext"></a>xmlGenericErrorContext</h3><pre class="programlisting">#define xmlGenericErrorContext</pre><p> |
| 205 | Global setting passed to generic error callbacks</p><p> |
| 206 | |
| 207 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlGetWarningsDefaultValue"></a>xmlGetWarningsDefaultValue</h3><pre class="programlisting">#define xmlGetWarningsDefaultValue</pre><p> |
| 208 | Global setting, indicate that the parser should provide warnings. |
| 209 | Activated by default.</p><p> |
| 210 | |
| 211 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlIndentTreeOutput"></a>xmlIndentTreeOutput</h3><pre class="programlisting">#define xmlIndentTreeOutput</pre><p> |
| 212 | Global setting, asking the serializer to indent the output tree by default |
| 213 | Enabled by default</p><p> |
| 214 | |
| 215 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlTreeIndentString"></a>xmlTreeIndentString</h3><pre class="programlisting">#define xmlTreeIndentString</pre><p> |
| 216 | The string used to do one-level indent. By default is equal to " " (two spaces)</p><p> |
| 217 | |
| 218 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlKeepBlanksDefaultValue"></a>xmlKeepBlanksDefaultValue</h3><pre class="programlisting">#define xmlKeepBlanksDefaultValue</pre><p> |
| 219 | Global setting, indicate that the parser should keep all blanks |
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 220 | nodes found in the content |
| 221 | Activated by default, this is actually needed to have the parser |
| 222 | conformant to the XML Recommendation, however the option is kept |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame^] | 223 | for some applications since this was libxml1 default behaviour.</p><p> |
| 224 | |
| 225 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlLineNumbersDefaultValue"></a>xmlLineNumbersDefaultValue</h3><pre class="programlisting">#define xmlLineNumbersDefaultValue</pre><p> |
| 226 | Global setting, indicate that the parser should store the line number |
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 227 | in the content field of elements in the DOM tree. |
| 228 | Disabled by default since this may not be safe for old classes of |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame^] | 229 | applicaton.</p><p> |
| 230 | |
| 231 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlLoadExtDtdDefaultValue"></a>xmlLoadExtDtdDefaultValue</h3><pre class="programlisting">#define xmlLoadExtDtdDefaultValue</pre><p> |
| 232 | Global setting, indicate that the parser should load DTD while not |
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 233 | validating. |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame^] | 234 | Disabled by default.</p><p> |
| 235 | |
| 236 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlParserDebugEntities"></a>xmlParserDebugEntities</h3><pre class="programlisting">#define xmlParserDebugEntities</pre><p> |
| 237 | Global setting, asking the parser to print out debugging informations. |
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 238 | while handling entities. |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame^] | 239 | Disabled by default</p><p> |
| 240 | |
| 241 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlParserVersion"></a>xmlParserVersion</h3><pre class="programlisting">#define xmlParserVersion</pre><p> |
| 242 | Constant string describing the internal version of the library</p><p> |
| 243 | |
| 244 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlPedanticParserDefaultValue"></a>xmlPedanticParserDefaultValue</h3><pre class="programlisting">#define xmlPedanticParserDefaultValue</pre><p> |
| 245 | Global setting, indicate that the parser be pedantic |
| 246 | Disabled by default.</p><p> |
| 247 | |
| 248 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSaveNoEmptyTags"></a>xmlSaveNoEmptyTags</h3><pre class="programlisting">#define xmlSaveNoEmptyTags</pre><p> |
| 249 | Global setting, asking the serializer to not output empty tags |
Daniel Veillard | 5f4b599 | 2002-02-20 10:22:49 +0000 | [diff] [blame] | 250 | as <empty/> but <empty></empty>. those two forms are undistinguishable |
| 251 | once parsed. |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame^] | 252 | Disabled by default</p><p> |
| 253 | |
| 254 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlSubstituteEntitiesDefaultValue"></a>xmlSubstituteEntitiesDefaultValue</h3><pre class="programlisting">#define xmlSubstituteEntitiesDefaultValue</pre><p> |
| 255 | Global setting, indicate that the parser should not generate entity |
Daniel Veillard | aec6356 | 2003-03-23 20:42:17 +0000 | [diff] [blame] | 256 | references but replace them with the actual content of the entity |
| 257 | Disabled by default, this should be activated when using XPath since |
| 258 | the XPath data model requires entities replacement and the XPath |
Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame^] | 259 | engine does not handle entities references transparently.</p><p> |
| 260 | |
| 261 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlRegisterNodeDefaultValue"></a>xmlRegisterNodeDefaultValue</h3><pre class="programlisting">#define xmlRegisterNodeDefaultValue</pre><p> |
| 262 | |
| 263 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlDeregisterNodeDefaultValue"></a>xmlDeregisterNodeDefaultValue</h3><pre class="programlisting">#define xmlDeregisterNodeDefaultValue</pre><p> |
| 264 | |
| 265 | </p></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-threads.html"><b><< threads</b></a></td><td align="right"><a accesskey="n" href="libxml-DOCBparser.html"><b>DOCBparser >></b></a></td></tr></table></body></html> |