Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1 | <HTML |
| 2 | ><HEAD |
| 3 | ><TITLE |
| 4 | >HTMLparser</TITLE |
| 5 | ><META |
| 6 | NAME="GENERATOR" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 7 | CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 8 | REL="HOME" |
| 9 | TITLE="Gnome XML Library Reference Manual" |
| 10 | HREF="book1.html"><LINK |
| 11 | REL="UP" |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 12 | TITLE="Libxml Library Reference" |
| 13 | HREF="libxml-lib.html"><LINK |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 14 | REL="PREVIOUS" |
Daniel Veillard | 6bd26dc | 1999-09-03 14:28:40 +0000 | [diff] [blame] | 15 | TITLE="xml-error" |
| 16 | HREF="gnome-xml-xml-error.html"><LINK |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 17 | REL="NEXT" |
| 18 | TITLE="HTMLtree" |
| 19 | HREF="gnome-xml-htmltree.html"></HEAD |
| 20 | ><BODY |
| 21 | BGCOLOR="#FFFFFF" |
| 22 | TEXT="#000000" |
| 23 | ><DIV |
| 24 | CLASS="NAVHEADER" |
| 25 | ><TABLE |
| 26 | WIDTH="100%" |
| 27 | BORDER="0" |
| 28 | BGCOLOR="#000000" |
| 29 | CELLPADDING="1" |
| 30 | CELLSPACING="0" |
| 31 | ><TR |
| 32 | ><TH |
| 33 | COLSPAN="4" |
| 34 | ALIGN="center" |
| 35 | ><FONT |
| 36 | COLOR="#FFFFFF" |
| 37 | SIZE="5" |
| 38 | >Gnome XML Library Reference Manual</FONT |
| 39 | ></TH |
| 40 | ></TR |
| 41 | ><TR |
| 42 | ><TD |
| 43 | WIDTH="25%" |
| 44 | BGCOLOR="#C00000" |
| 45 | ALIGN="left" |
| 46 | ><A |
Daniel Veillard | 6bd26dc | 1999-09-03 14:28:40 +0000 | [diff] [blame] | 47 | HREF="gnome-xml-xml-error.html" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 48 | ><FONT |
| 49 | COLOR="#FFFFFF" |
| 50 | SIZE="3" |
| 51 | ><B |
| 52 | ><<< Previous Page</B |
| 53 | ></FONT |
| 54 | ></A |
| 55 | ></TD |
| 56 | ><TD |
| 57 | WIDTH="25%" |
| 58 | BGCOLOR="#0000C0" |
| 59 | ALIGN="center" |
| 60 | ><FONT |
| 61 | COLOR="#FFFFFF" |
| 62 | SIZE="3" |
| 63 | ><B |
| 64 | ><A |
| 65 | HREF="book1.html" |
| 66 | ><FONT |
| 67 | COLOR="#FFFFFF" |
| 68 | SIZE="3" |
| 69 | ><B |
| 70 | >Home</B |
| 71 | ></FONT |
| 72 | ></A |
| 73 | ></B |
| 74 | ></FONT |
| 75 | ></TD |
| 76 | ><TD |
| 77 | WIDTH="25%" |
| 78 | BGCOLOR="#00C000" |
| 79 | ALIGN="center" |
| 80 | ><FONT |
| 81 | COLOR="#FFFFFF" |
| 82 | SIZE="3" |
| 83 | ><B |
| 84 | ><A |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 85 | HREF="libxml-lib.html" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 86 | ><FONT |
| 87 | COLOR="#FFFFFF" |
| 88 | SIZE="3" |
| 89 | ><B |
| 90 | >Up</B |
| 91 | ></FONT |
| 92 | ></A |
| 93 | ></B |
| 94 | ></FONT |
| 95 | ></TD |
| 96 | ><TD |
| 97 | WIDTH="25%" |
| 98 | BGCOLOR="#C00000" |
| 99 | ALIGN="right" |
| 100 | ><A |
| 101 | HREF="gnome-xml-htmltree.html" |
| 102 | ><FONT |
| 103 | COLOR="#FFFFFF" |
| 104 | SIZE="3" |
| 105 | ><B |
| 106 | >Next Page >>></B |
| 107 | ></FONT |
| 108 | ></A |
| 109 | ></TD |
| 110 | ></TR |
| 111 | ></TABLE |
| 112 | ></DIV |
| 113 | ><H1 |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 114 | >HTMLparser</H1 |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 115 | ><DIV |
| 116 | CLASS="REFNAMEDIV" |
| 117 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 118 | NAME="AEN9635" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 119 | ></A |
| 120 | ><H2 |
| 121 | >Name</H2 |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 122 | >HTMLparser — </DIV |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 123 | ><DIV |
| 124 | CLASS="REFSYNOPSISDIV" |
| 125 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 126 | NAME="AEN9638" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 127 | ></A |
| 128 | ><H2 |
| 129 | >Synopsis</H2 |
| 130 | ><TABLE |
| 131 | BORDER="0" |
| 132 | BGCOLOR="#D6E8FF" |
| 133 | WIDTH="100%" |
| 134 | CELLPADDING="6" |
| 135 | ><TR |
| 136 | ><TD |
| 137 | ><PRE |
| 138 | CLASS="SYNOPSIS" |
| 139 | > |
| 140 | |
| 141 | typedef <A |
| 142 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXT" |
| 143 | >htmlParserCtxt</A |
| 144 | >; |
| 145 | typedef <A |
| 146 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR" |
| 147 | >htmlParserCtxtPtr</A |
| 148 | >; |
| 149 | typedef <A |
| 150 | HREF="gnome-xml-htmlparser.html#HTMLPARSERNODEINFO" |
| 151 | >htmlParserNodeInfo</A |
| 152 | >; |
| 153 | typedef <A |
| 154 | HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLER" |
| 155 | >htmlSAXHandler</A |
| 156 | >; |
| 157 | typedef <A |
| 158 | HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR" |
| 159 | >htmlSAXHandlerPtr</A |
| 160 | >; |
| 161 | typedef <A |
| 162 | HREF="gnome-xml-htmlparser.html#HTMLPARSERINPUT" |
| 163 | >htmlParserInput</A |
| 164 | >; |
| 165 | typedef <A |
| 166 | HREF="gnome-xml-htmlparser.html#HTMLPARSERINPUTPTR" |
| 167 | >htmlParserInputPtr</A |
| 168 | >; |
| 169 | typedef <A |
| 170 | HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| 171 | >htmlDocPtr</A |
| 172 | >; |
| 173 | typedef <A |
| 174 | HREF="gnome-xml-htmlparser.html#HTMLNODEPTR" |
| 175 | >htmlNodePtr</A |
| 176 | >; |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 177 | struct <A |
| 178 | HREF="gnome-xml-htmlparser.html#HTMLELEMDESC" |
| 179 | >htmlElemDesc</A |
| 180 | >; |
| 181 | typedef <A |
| 182 | HREF="gnome-xml-htmlparser.html#HTMLELEMDESCPTR" |
| 183 | >htmlElemDescPtr</A |
| 184 | >; |
| 185 | struct <A |
| 186 | HREF="gnome-xml-htmlparser.html#HTMLENTITYDESC" |
| 187 | >htmlEntityDesc</A |
| 188 | >; |
| 189 | typedef <A |
| 190 | HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR" |
| 191 | >htmlEntityDescPtr</A |
| 192 | >; |
| 193 | <A |
| 194 | HREF="gnome-xml-htmlparser.html#HTMLELEMDESCPTR" |
| 195 | >htmlElemDescPtr</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 196 | > <A |
| 197 | HREF="gnome-xml-htmlparser.html#HTMLTAGLOOKUP" |
| 198 | >htmlTagLookup</A |
| 199 | > (const <A |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 200 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 201 | >xmlChar</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 202 | > *tag); |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 203 | <A |
| 204 | HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR" |
| 205 | >htmlEntityDescPtr</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 206 | > <A |
| 207 | HREF="gnome-xml-htmlparser.html#HTMLENTITYLOOKUP" |
| 208 | >htmlEntityLookup</A |
| 209 | > (const <A |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 210 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 211 | >xmlChar</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 212 | > *name); |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 213 | <A |
| 214 | HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR" |
| 215 | >htmlEntityDescPtr</A |
| 216 | > <A |
| 217 | HREF="gnome-xml-htmlparser.html#HTMLENTITYVALUELOOKUP" |
| 218 | >htmlEntityValueLookup</A |
| 219 | > (int value); |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 220 | int <A |
| 221 | HREF="gnome-xml-htmlparser.html#HTMLISAUTOCLOSED" |
| 222 | >htmlIsAutoClosed</A |
| 223 | > (<A |
| 224 | HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| 225 | >htmlDocPtr</A |
| 226 | > doc, |
| 227 | <A |
| 228 | HREF="gnome-xml-htmlparser.html#HTMLNODEPTR" |
| 229 | >htmlNodePtr</A |
| 230 | > elem); |
| 231 | int <A |
| 232 | HREF="gnome-xml-htmlparser.html#HTMLAUTOCLOSETAG" |
| 233 | >htmlAutoCloseTag</A |
| 234 | > (<A |
| 235 | HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| 236 | >htmlDocPtr</A |
| 237 | > doc, |
| 238 | const <A |
| 239 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 240 | >xmlChar</A |
| 241 | > *name, |
| 242 | <A |
| 243 | HREF="gnome-xml-htmlparser.html#HTMLNODEPTR" |
| 244 | >htmlNodePtr</A |
| 245 | > elem); |
| 246 | <A |
| 247 | HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR" |
| 248 | >htmlEntityDescPtr</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 249 | > <A |
| 250 | HREF="gnome-xml-htmlparser.html#HTMLPARSEENTITYREF" |
| 251 | >htmlParseEntityRef</A |
| 252 | > (<A |
| 253 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR" |
| 254 | >htmlParserCtxtPtr</A |
| 255 | > ctxt, |
| 256 | <A |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 257 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 258 | >xmlChar</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 259 | > **str); |
| 260 | int <A |
| 261 | HREF="gnome-xml-htmlparser.html#HTMLPARSECHARREF" |
| 262 | >htmlParseCharRef</A |
| 263 | > (<A |
| 264 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR" |
| 265 | >htmlParserCtxtPtr</A |
| 266 | > ctxt); |
| 267 | void <A |
| 268 | HREF="gnome-xml-htmlparser.html#HTMLPARSEELEMENT" |
| 269 | >htmlParseElement</A |
| 270 | > (<A |
| 271 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR" |
| 272 | >htmlParserCtxtPtr</A |
| 273 | > ctxt); |
| 274 | <A |
| 275 | HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| 276 | >htmlDocPtr</A |
| 277 | > <A |
| 278 | HREF="gnome-xml-htmlparser.html#HTMLSAXPARSEDOC" |
| 279 | >htmlSAXParseDoc</A |
| 280 | > (<A |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 281 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 282 | >xmlChar</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 283 | > *cur, |
| 284 | const char *encoding, |
| 285 | <A |
| 286 | HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR" |
| 287 | >htmlSAXHandlerPtr</A |
| 288 | > sax, |
| 289 | void *userData); |
| 290 | <A |
| 291 | HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| 292 | >htmlDocPtr</A |
| 293 | > <A |
| 294 | HREF="gnome-xml-htmlparser.html#HTMLPARSEDOC" |
| 295 | >htmlParseDoc</A |
| 296 | > (<A |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 297 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 298 | >xmlChar</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 299 | > *cur, |
| 300 | const char *encoding); |
| 301 | <A |
| 302 | HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| 303 | >htmlDocPtr</A |
| 304 | > <A |
| 305 | HREF="gnome-xml-htmlparser.html#HTMLSAXPARSEFILE" |
| 306 | >htmlSAXParseFile</A |
| 307 | > (const char *filename, |
| 308 | const char *encoding, |
| 309 | <A |
| 310 | HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR" |
| 311 | >htmlSAXHandlerPtr</A |
| 312 | > sax, |
| 313 | void *userData); |
| 314 | <A |
| 315 | HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| 316 | >htmlDocPtr</A |
| 317 | > <A |
| 318 | HREF="gnome-xml-htmlparser.html#HTMLPARSEFILE" |
| 319 | >htmlParseFile</A |
| 320 | > (const char *filename, |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 321 | const char *encoding); |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 322 | int <A |
| 323 | HREF="gnome-xml-htmlparser.html#UTF8TOHTML" |
| 324 | >UTF8ToHtml</A |
| 325 | > (unsigned char *out, |
| 326 | int *outlen, |
| 327 | unsigned char *in, |
| 328 | int *inlen); |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 329 | int <A |
| 330 | HREF="gnome-xml-htmlparser.html#HTMLENCODEENTITIES" |
| 331 | >htmlEncodeEntities</A |
| 332 | > (unsigned char *out, |
| 333 | int *outlen, |
| 334 | unsigned char *in, |
| 335 | int *inlen, |
| 336 | int quoteChar); |
Daniel Veillard | 29a11cc | 2000-10-25 13:32:39 +0000 | [diff] [blame] | 337 | int <A |
| 338 | HREF="gnome-xml-htmlparser.html#HTMLISSCRIPTATTRIBUTE" |
| 339 | >htmlIsScriptAttribute</A |
| 340 | > (const <A |
| 341 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 342 | >xmlChar</A |
| 343 | > *name); |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 344 | void <A |
| 345 | HREF="gnome-xml-htmlparser.html#HTMLFREEPARSERCTXT" |
| 346 | >htmlFreeParserCtxt</A |
| 347 | > (<A |
| 348 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR" |
| 349 | >htmlParserCtxtPtr</A |
| 350 | > ctxt); |
| 351 | <A |
| 352 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR" |
| 353 | >htmlParserCtxtPtr</A |
| 354 | > <A |
| 355 | HREF="gnome-xml-htmlparser.html#HTMLCREATEPUSHPARSERCTXT" |
| 356 | >htmlCreatePushParserCtxt</A |
| 357 | > (<A |
| 358 | HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR" |
| 359 | >htmlSAXHandlerPtr</A |
| 360 | > sax, |
| 361 | void *user_data, |
| 362 | const char *chunk, |
| 363 | int size, |
| 364 | const char *filename, |
| 365 | <A |
| 366 | HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| 367 | >xmlCharEncoding</A |
| 368 | > enc); |
| 369 | int <A |
| 370 | HREF="gnome-xml-htmlparser.html#HTMLPARSECHUNK" |
| 371 | >htmlParseChunk</A |
| 372 | > (<A |
| 373 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR" |
| 374 | >htmlParserCtxtPtr</A |
| 375 | > ctxt, |
| 376 | const char *chunk, |
| 377 | int size, |
| 378 | int terminate);</PRE |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 379 | ></TD |
| 380 | ></TR |
| 381 | ></TABLE |
| 382 | ></DIV |
| 383 | ><DIV |
| 384 | CLASS="REFSECT1" |
| 385 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 386 | NAME="AEN9701" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 387 | ></A |
| 388 | ><H2 |
| 389 | >Description</H2 |
| 390 | ><P |
| 391 | ></P |
| 392 | ></DIV |
| 393 | ><DIV |
| 394 | CLASS="REFSECT1" |
| 395 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 396 | NAME="AEN9704" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 397 | ></A |
| 398 | ><H2 |
| 399 | >Details</H2 |
| 400 | ><DIV |
| 401 | CLASS="REFSECT2" |
| 402 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 403 | NAME="AEN9706" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 404 | ></A |
| 405 | ><H3 |
| 406 | ><A |
| 407 | NAME="HTMLPARSERCTXT" |
| 408 | ></A |
| 409 | >htmlParserCtxt</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 410 | ><TABLE |
| 411 | BORDER="0" |
| 412 | BGCOLOR="#D6E8FF" |
| 413 | WIDTH="100%" |
| 414 | CELLPADDING="6" |
| 415 | ><TR |
| 416 | ><TD |
| 417 | ><PRE |
| 418 | CLASS="PROGRAMLISTING" |
| 419 | >typedef xmlParserCtxt htmlParserCtxt;</PRE |
| 420 | ></TD |
| 421 | ></TR |
| 422 | ></TABLE |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 423 | ><P |
| 424 | ></P |
| 425 | ></DIV |
| 426 | ><HR><DIV |
| 427 | CLASS="REFSECT2" |
| 428 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 429 | NAME="AEN9711" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 430 | ></A |
| 431 | ><H3 |
| 432 | ><A |
| 433 | NAME="HTMLPARSERCTXTPTR" |
| 434 | ></A |
| 435 | >htmlParserCtxtPtr</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 436 | ><TABLE |
| 437 | BORDER="0" |
| 438 | BGCOLOR="#D6E8FF" |
| 439 | WIDTH="100%" |
| 440 | CELLPADDING="6" |
| 441 | ><TR |
| 442 | ><TD |
| 443 | ><PRE |
| 444 | CLASS="PROGRAMLISTING" |
| 445 | >typedef xmlParserCtxtPtr htmlParserCtxtPtr;</PRE |
| 446 | ></TD |
| 447 | ></TR |
| 448 | ></TABLE |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 449 | ><P |
| 450 | ></P |
| 451 | ></DIV |
| 452 | ><HR><DIV |
| 453 | CLASS="REFSECT2" |
| 454 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 455 | NAME="AEN9716" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 456 | ></A |
| 457 | ><H3 |
| 458 | ><A |
| 459 | NAME="HTMLPARSERNODEINFO" |
| 460 | ></A |
| 461 | >htmlParserNodeInfo</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 462 | ><TABLE |
| 463 | BORDER="0" |
| 464 | BGCOLOR="#D6E8FF" |
| 465 | WIDTH="100%" |
| 466 | CELLPADDING="6" |
| 467 | ><TR |
| 468 | ><TD |
| 469 | ><PRE |
| 470 | CLASS="PROGRAMLISTING" |
| 471 | >typedef xmlParserNodeInfo htmlParserNodeInfo;</PRE |
| 472 | ></TD |
| 473 | ></TR |
| 474 | ></TABLE |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 475 | ><P |
| 476 | ></P |
| 477 | ></DIV |
| 478 | ><HR><DIV |
| 479 | CLASS="REFSECT2" |
| 480 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 481 | NAME="AEN9721" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 482 | ></A |
| 483 | ><H3 |
| 484 | ><A |
| 485 | NAME="HTMLSAXHANDLER" |
| 486 | ></A |
| 487 | >htmlSAXHandler</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 488 | ><TABLE |
| 489 | BORDER="0" |
| 490 | BGCOLOR="#D6E8FF" |
| 491 | WIDTH="100%" |
| 492 | CELLPADDING="6" |
| 493 | ><TR |
| 494 | ><TD |
| 495 | ><PRE |
| 496 | CLASS="PROGRAMLISTING" |
| 497 | >typedef xmlSAXHandler htmlSAXHandler;</PRE |
| 498 | ></TD |
| 499 | ></TR |
| 500 | ></TABLE |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 501 | ><P |
| 502 | ></P |
| 503 | ></DIV |
| 504 | ><HR><DIV |
| 505 | CLASS="REFSECT2" |
| 506 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 507 | NAME="AEN9726" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 508 | ></A |
| 509 | ><H3 |
| 510 | ><A |
| 511 | NAME="HTMLSAXHANDLERPTR" |
| 512 | ></A |
| 513 | >htmlSAXHandlerPtr</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 514 | ><TABLE |
| 515 | BORDER="0" |
| 516 | BGCOLOR="#D6E8FF" |
| 517 | WIDTH="100%" |
| 518 | CELLPADDING="6" |
| 519 | ><TR |
| 520 | ><TD |
| 521 | ><PRE |
| 522 | CLASS="PROGRAMLISTING" |
| 523 | >typedef xmlSAXHandlerPtr htmlSAXHandlerPtr;</PRE |
| 524 | ></TD |
| 525 | ></TR |
| 526 | ></TABLE |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 527 | ><P |
| 528 | ></P |
| 529 | ></DIV |
| 530 | ><HR><DIV |
| 531 | CLASS="REFSECT2" |
| 532 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 533 | NAME="AEN9731" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 534 | ></A |
| 535 | ><H3 |
| 536 | ><A |
| 537 | NAME="HTMLPARSERINPUT" |
| 538 | ></A |
| 539 | >htmlParserInput</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 540 | ><TABLE |
| 541 | BORDER="0" |
| 542 | BGCOLOR="#D6E8FF" |
| 543 | WIDTH="100%" |
| 544 | CELLPADDING="6" |
| 545 | ><TR |
| 546 | ><TD |
| 547 | ><PRE |
| 548 | CLASS="PROGRAMLISTING" |
| 549 | >typedef xmlParserInput htmlParserInput;</PRE |
| 550 | ></TD |
| 551 | ></TR |
| 552 | ></TABLE |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 553 | ><P |
| 554 | ></P |
| 555 | ></DIV |
| 556 | ><HR><DIV |
| 557 | CLASS="REFSECT2" |
| 558 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 559 | NAME="AEN9736" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 560 | ></A |
| 561 | ><H3 |
| 562 | ><A |
| 563 | NAME="HTMLPARSERINPUTPTR" |
| 564 | ></A |
| 565 | >htmlParserInputPtr</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 566 | ><TABLE |
| 567 | BORDER="0" |
| 568 | BGCOLOR="#D6E8FF" |
| 569 | WIDTH="100%" |
| 570 | CELLPADDING="6" |
| 571 | ><TR |
| 572 | ><TD |
| 573 | ><PRE |
| 574 | CLASS="PROGRAMLISTING" |
| 575 | >typedef xmlParserInputPtr htmlParserInputPtr;</PRE |
| 576 | ></TD |
| 577 | ></TR |
| 578 | ></TABLE |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 579 | ><P |
| 580 | ></P |
| 581 | ></DIV |
| 582 | ><HR><DIV |
| 583 | CLASS="REFSECT2" |
| 584 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 585 | NAME="AEN9741" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 586 | ></A |
| 587 | ><H3 |
| 588 | ><A |
| 589 | NAME="HTMLDOCPTR" |
| 590 | ></A |
| 591 | >htmlDocPtr</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 592 | ><TABLE |
| 593 | BORDER="0" |
| 594 | BGCOLOR="#D6E8FF" |
| 595 | WIDTH="100%" |
| 596 | CELLPADDING="6" |
| 597 | ><TR |
| 598 | ><TD |
| 599 | ><PRE |
| 600 | CLASS="PROGRAMLISTING" |
| 601 | >typedef xmlDocPtr htmlDocPtr;</PRE |
| 602 | ></TD |
| 603 | ></TR |
| 604 | ></TABLE |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 605 | ><P |
| 606 | ></P |
| 607 | ></DIV |
| 608 | ><HR><DIV |
| 609 | CLASS="REFSECT2" |
| 610 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 611 | NAME="AEN9746" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 612 | ></A |
| 613 | ><H3 |
| 614 | ><A |
| 615 | NAME="HTMLNODEPTR" |
| 616 | ></A |
| 617 | >htmlNodePtr</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 618 | ><TABLE |
| 619 | BORDER="0" |
| 620 | BGCOLOR="#D6E8FF" |
| 621 | WIDTH="100%" |
| 622 | CELLPADDING="6" |
| 623 | ><TR |
| 624 | ><TD |
| 625 | ><PRE |
| 626 | CLASS="PROGRAMLISTING" |
| 627 | >typedef xmlNodePtr htmlNodePtr;</PRE |
| 628 | ></TD |
| 629 | ></TR |
| 630 | ></TABLE |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 631 | ><P |
| 632 | ></P |
| 633 | ></DIV |
| 634 | ><HR><DIV |
| 635 | CLASS="REFSECT2" |
| 636 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 637 | NAME="AEN9751" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 638 | ></A |
| 639 | ><H3 |
| 640 | ><A |
| 641 | NAME="HTMLELEMDESC" |
| 642 | ></A |
| 643 | >struct htmlElemDesc</H3 |
| 644 | ><TABLE |
| 645 | BORDER="0" |
| 646 | BGCOLOR="#D6E8FF" |
| 647 | WIDTH="100%" |
| 648 | CELLPADDING="6" |
| 649 | ><TR |
| 650 | ><TD |
| 651 | ><PRE |
| 652 | CLASS="PROGRAMLISTING" |
| 653 | >struct htmlElemDesc { |
| 654 | const char *name; /* The tag name */ |
| 655 | int startTag; /* Whether the start tag can be implied */ |
| 656 | int endTag; /* Whether the end tag can be implied */ |
| 657 | int empty; /* Is this an empty element ? */ |
| 658 | int depr; /* Is this a deprecated element ? */ |
| 659 | int dtd; /* 1: only in Loose DTD, 2: only Frameset one */ |
| 660 | const char *desc; /* the description */ |
| 661 | };</PRE |
| 662 | ></TD |
| 663 | ></TR |
| 664 | ></TABLE |
| 665 | ><P |
| 666 | ></P |
| 667 | ></DIV |
| 668 | ><HR><DIV |
| 669 | CLASS="REFSECT2" |
| 670 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 671 | NAME="AEN9756" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 672 | ></A |
| 673 | ><H3 |
| 674 | ><A |
| 675 | NAME="HTMLELEMDESCPTR" |
| 676 | ></A |
| 677 | >htmlElemDescPtr</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 678 | ><TABLE |
| 679 | BORDER="0" |
| 680 | BGCOLOR="#D6E8FF" |
| 681 | WIDTH="100%" |
| 682 | CELLPADDING="6" |
| 683 | ><TR |
| 684 | ><TD |
| 685 | ><PRE |
| 686 | CLASS="PROGRAMLISTING" |
| 687 | >typedef htmlElemDesc *htmlElemDescPtr;</PRE |
| 688 | ></TD |
| 689 | ></TR |
| 690 | ></TABLE |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 691 | ><P |
| 692 | ></P |
| 693 | ></DIV |
| 694 | ><HR><DIV |
| 695 | CLASS="REFSECT2" |
| 696 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 697 | NAME="AEN9761" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 698 | ></A |
| 699 | ><H3 |
| 700 | ><A |
| 701 | NAME="HTMLENTITYDESC" |
| 702 | ></A |
| 703 | >struct htmlEntityDesc</H3 |
| 704 | ><TABLE |
| 705 | BORDER="0" |
| 706 | BGCOLOR="#D6E8FF" |
| 707 | WIDTH="100%" |
| 708 | CELLPADDING="6" |
| 709 | ><TR |
| 710 | ><TD |
| 711 | ><PRE |
| 712 | CLASS="PROGRAMLISTING" |
| 713 | >struct htmlEntityDesc { |
| 714 | int value; /* the UNICODE value for the character */ |
| 715 | const char *name; /* The entity name */ |
| 716 | const char *desc; /* the description */ |
| 717 | };</PRE |
| 718 | ></TD |
| 719 | ></TR |
| 720 | ></TABLE |
| 721 | ><P |
| 722 | ></P |
| 723 | ></DIV |
| 724 | ><HR><DIV |
| 725 | CLASS="REFSECT2" |
| 726 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 727 | NAME="AEN9766" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 728 | ></A |
| 729 | ><H3 |
| 730 | ><A |
| 731 | NAME="HTMLENTITYDESCPTR" |
| 732 | ></A |
| 733 | >htmlEntityDescPtr</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 734 | ><TABLE |
| 735 | BORDER="0" |
| 736 | BGCOLOR="#D6E8FF" |
| 737 | WIDTH="100%" |
| 738 | CELLPADDING="6" |
| 739 | ><TR |
| 740 | ><TD |
| 741 | ><PRE |
| 742 | CLASS="PROGRAMLISTING" |
| 743 | >typedef htmlEntityDesc *htmlEntityDescPtr;</PRE |
| 744 | ></TD |
| 745 | ></TR |
| 746 | ></TABLE |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 747 | ><P |
| 748 | ></P |
| 749 | ></DIV |
| 750 | ><HR><DIV |
| 751 | CLASS="REFSECT2" |
| 752 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 753 | NAME="AEN9771" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 754 | ></A |
| 755 | ><H3 |
| 756 | ><A |
| 757 | NAME="HTMLTAGLOOKUP" |
| 758 | ></A |
| 759 | >htmlTagLookup ()</H3 |
| 760 | ><TABLE |
| 761 | BORDER="0" |
| 762 | BGCOLOR="#D6E8FF" |
| 763 | WIDTH="100%" |
| 764 | CELLPADDING="6" |
| 765 | ><TR |
| 766 | ><TD |
| 767 | ><PRE |
| 768 | CLASS="PROGRAMLISTING" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 769 | ><A |
| 770 | HREF="gnome-xml-htmlparser.html#HTMLELEMDESCPTR" |
| 771 | >htmlElemDescPtr</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 772 | > htmlTagLookup (const <A |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 773 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 774 | >xmlChar</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 775 | > *tag);</PRE |
| 776 | ></TD |
| 777 | ></TR |
| 778 | ></TABLE |
| 779 | ><P |
| 780 | >Lookup the HTML tag in the ElementTable</P |
| 781 | ><P |
| 782 | ></P |
| 783 | ><DIV |
| 784 | CLASS="INFORMALTABLE" |
| 785 | ><P |
| 786 | ></P |
| 787 | ><TABLE |
| 788 | BORDER="0" |
| 789 | WIDTH="100%" |
| 790 | BGCOLOR="#FFD0D0" |
| 791 | CELLSPACING="0" |
| 792 | CELLPADDING="4" |
| 793 | CLASS="CALSTABLE" |
| 794 | ><TR |
| 795 | ><TD |
| 796 | WIDTH="20%" |
| 797 | ALIGN="RIGHT" |
| 798 | VALIGN="TOP" |
| 799 | ><TT |
| 800 | CLASS="PARAMETER" |
| 801 | ><I |
| 802 | >tag</I |
| 803 | ></TT |
| 804 | > :</TD |
| 805 | ><TD |
| 806 | WIDTH="80%" |
| 807 | ALIGN="LEFT" |
| 808 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 809 | > The tag name in lowercase</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 810 | ></TR |
| 811 | ><TR |
| 812 | ><TD |
| 813 | WIDTH="20%" |
| 814 | ALIGN="RIGHT" |
| 815 | VALIGN="TOP" |
| 816 | ><I |
| 817 | CLASS="EMPHASIS" |
| 818 | >Returns</I |
| 819 | > :</TD |
| 820 | ><TD |
| 821 | WIDTH="80%" |
| 822 | ALIGN="LEFT" |
| 823 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 824 | >the related htmlElemDescPtr or NULL if not found.</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 825 | ></TR |
| 826 | ></TABLE |
| 827 | ><P |
| 828 | ></P |
| 829 | ></DIV |
| 830 | ></DIV |
| 831 | ><HR><DIV |
| 832 | CLASS="REFSECT2" |
| 833 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 834 | NAME="AEN9792" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 835 | ></A |
| 836 | ><H3 |
| 837 | ><A |
| 838 | NAME="HTMLENTITYLOOKUP" |
| 839 | ></A |
| 840 | >htmlEntityLookup ()</H3 |
| 841 | ><TABLE |
| 842 | BORDER="0" |
| 843 | BGCOLOR="#D6E8FF" |
| 844 | WIDTH="100%" |
| 845 | CELLPADDING="6" |
| 846 | ><TR |
| 847 | ><TD |
| 848 | ><PRE |
| 849 | CLASS="PROGRAMLISTING" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 850 | ><A |
| 851 | HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR" |
| 852 | >htmlEntityDescPtr</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 853 | > htmlEntityLookup (const <A |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 854 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 855 | >xmlChar</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 856 | > *name);</PRE |
| 857 | ></TD |
| 858 | ></TR |
| 859 | ></TABLE |
| 860 | ><P |
| 861 | >Lookup the given entity in EntitiesTable</P |
| 862 | ><P |
| 863 | >TODO: the linear scan is really ugly, an hash table is really needed.</P |
| 864 | ><P |
| 865 | ></P |
| 866 | ><DIV |
| 867 | CLASS="INFORMALTABLE" |
| 868 | ><P |
| 869 | ></P |
| 870 | ><TABLE |
| 871 | BORDER="0" |
| 872 | WIDTH="100%" |
| 873 | BGCOLOR="#FFD0D0" |
| 874 | CELLSPACING="0" |
| 875 | CELLPADDING="4" |
| 876 | CLASS="CALSTABLE" |
| 877 | ><TR |
| 878 | ><TD |
| 879 | WIDTH="20%" |
| 880 | ALIGN="RIGHT" |
| 881 | VALIGN="TOP" |
| 882 | ><TT |
| 883 | CLASS="PARAMETER" |
| 884 | ><I |
| 885 | >name</I |
| 886 | ></TT |
| 887 | > :</TD |
| 888 | ><TD |
| 889 | WIDTH="80%" |
| 890 | ALIGN="LEFT" |
| 891 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 892 | > the entity name</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 893 | ></TR |
| 894 | ><TR |
| 895 | ><TD |
| 896 | WIDTH="20%" |
| 897 | ALIGN="RIGHT" |
| 898 | VALIGN="TOP" |
| 899 | ><I |
| 900 | CLASS="EMPHASIS" |
| 901 | >Returns</I |
| 902 | > :</TD |
| 903 | ><TD |
| 904 | WIDTH="80%" |
| 905 | ALIGN="LEFT" |
| 906 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 907 | >the associated htmlEntityDescPtr if found, NULL otherwise.</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 908 | ></TR |
| 909 | ></TABLE |
| 910 | ><P |
| 911 | ></P |
| 912 | ></DIV |
| 913 | ></DIV |
| 914 | ><HR><DIV |
| 915 | CLASS="REFSECT2" |
| 916 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 917 | NAME="AEN9814" |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 918 | ></A |
| 919 | ><H3 |
| 920 | ><A |
| 921 | NAME="HTMLENTITYVALUELOOKUP" |
| 922 | ></A |
| 923 | >htmlEntityValueLookup ()</H3 |
| 924 | ><TABLE |
| 925 | BORDER="0" |
| 926 | BGCOLOR="#D6E8FF" |
| 927 | WIDTH="100%" |
| 928 | CELLPADDING="6" |
| 929 | ><TR |
| 930 | ><TD |
| 931 | ><PRE |
| 932 | CLASS="PROGRAMLISTING" |
| 933 | ><A |
| 934 | HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR" |
| 935 | >htmlEntityDescPtr</A |
| 936 | > htmlEntityValueLookup (int value);</PRE |
| 937 | ></TD |
| 938 | ></TR |
| 939 | ></TABLE |
| 940 | ><P |
| 941 | >Lookup the given entity in EntitiesTable</P |
| 942 | ><P |
| 943 | >TODO: the linear scan is really ugly, an hash table is really needed.</P |
| 944 | ><P |
| 945 | ></P |
| 946 | ><DIV |
| 947 | CLASS="INFORMALTABLE" |
| 948 | ><P |
| 949 | ></P |
| 950 | ><TABLE |
| 951 | BORDER="0" |
| 952 | WIDTH="100%" |
| 953 | BGCOLOR="#FFD0D0" |
| 954 | CELLSPACING="0" |
| 955 | CELLPADDING="4" |
| 956 | CLASS="CALSTABLE" |
| 957 | ><TR |
| 958 | ><TD |
| 959 | WIDTH="20%" |
| 960 | ALIGN="RIGHT" |
| 961 | VALIGN="TOP" |
| 962 | ><TT |
| 963 | CLASS="PARAMETER" |
| 964 | ><I |
| 965 | >value</I |
| 966 | ></TT |
| 967 | > :</TD |
| 968 | ><TD |
| 969 | WIDTH="80%" |
| 970 | ALIGN="LEFT" |
| 971 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 972 | > the entity's unicode value</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 973 | ></TR |
| 974 | ><TR |
| 975 | ><TD |
| 976 | WIDTH="20%" |
| 977 | ALIGN="RIGHT" |
| 978 | VALIGN="TOP" |
| 979 | ><I |
| 980 | CLASS="EMPHASIS" |
| 981 | >Returns</I |
| 982 | > :</TD |
| 983 | ><TD |
| 984 | WIDTH="80%" |
| 985 | ALIGN="LEFT" |
| 986 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 987 | >the associated htmlEntityDescPtr if found, NULL otherwise.</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 988 | ></TR |
| 989 | ></TABLE |
| 990 | ><P |
| 991 | ></P |
| 992 | ></DIV |
| 993 | ></DIV |
| 994 | ><HR><DIV |
| 995 | CLASS="REFSECT2" |
| 996 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 997 | NAME="AEN9835" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 998 | ></A |
| 999 | ><H3 |
| 1000 | ><A |
| 1001 | NAME="HTMLISAUTOCLOSED" |
| 1002 | ></A |
| 1003 | >htmlIsAutoClosed ()</H3 |
| 1004 | ><TABLE |
| 1005 | BORDER="0" |
| 1006 | BGCOLOR="#D6E8FF" |
| 1007 | WIDTH="100%" |
| 1008 | CELLPADDING="6" |
| 1009 | ><TR |
| 1010 | ><TD |
| 1011 | ><PRE |
| 1012 | CLASS="PROGRAMLISTING" |
| 1013 | >int htmlIsAutoClosed (<A |
| 1014 | HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| 1015 | >htmlDocPtr</A |
| 1016 | > doc, |
| 1017 | <A |
| 1018 | HREF="gnome-xml-htmlparser.html#HTMLNODEPTR" |
| 1019 | >htmlNodePtr</A |
| 1020 | > elem);</PRE |
| 1021 | ></TD |
| 1022 | ></TR |
| 1023 | ></TABLE |
| 1024 | ><P |
| 1025 | >The HTmL DtD allows a tag to implicitely close other tags. |
| 1026 | The list is kept in htmlStartClose array. This function checks |
| 1027 | if a tag is autoclosed by one of it's child</P |
| 1028 | ><P |
| 1029 | ></P |
| 1030 | ><DIV |
| 1031 | CLASS="INFORMALTABLE" |
| 1032 | ><P |
| 1033 | ></P |
| 1034 | ><TABLE |
| 1035 | BORDER="0" |
| 1036 | WIDTH="100%" |
| 1037 | BGCOLOR="#FFD0D0" |
| 1038 | CELLSPACING="0" |
| 1039 | CELLPADDING="4" |
| 1040 | CLASS="CALSTABLE" |
| 1041 | ><TR |
| 1042 | ><TD |
| 1043 | WIDTH="20%" |
| 1044 | ALIGN="RIGHT" |
| 1045 | VALIGN="TOP" |
| 1046 | ><TT |
| 1047 | CLASS="PARAMETER" |
| 1048 | ><I |
| 1049 | >doc</I |
| 1050 | ></TT |
| 1051 | > :</TD |
| 1052 | ><TD |
| 1053 | WIDTH="80%" |
| 1054 | ALIGN="LEFT" |
| 1055 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1056 | > the HTML document</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1057 | ></TR |
| 1058 | ><TR |
| 1059 | ><TD |
| 1060 | WIDTH="20%" |
| 1061 | ALIGN="RIGHT" |
| 1062 | VALIGN="TOP" |
| 1063 | ><TT |
| 1064 | CLASS="PARAMETER" |
| 1065 | ><I |
| 1066 | >elem</I |
| 1067 | ></TT |
| 1068 | > :</TD |
| 1069 | ><TD |
| 1070 | WIDTH="80%" |
| 1071 | ALIGN="LEFT" |
| 1072 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1073 | > the HTML element</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1074 | ></TR |
| 1075 | ><TR |
| 1076 | ><TD |
| 1077 | WIDTH="20%" |
| 1078 | ALIGN="RIGHT" |
| 1079 | VALIGN="TOP" |
| 1080 | ><I |
| 1081 | CLASS="EMPHASIS" |
| 1082 | >Returns</I |
| 1083 | > :</TD |
| 1084 | ><TD |
| 1085 | WIDTH="80%" |
| 1086 | ALIGN="LEFT" |
| 1087 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1088 | >1 if autoclosed, 0 otherwise</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1089 | ></TR |
| 1090 | ></TABLE |
| 1091 | ><P |
| 1092 | ></P |
| 1093 | ></DIV |
| 1094 | ></DIV |
| 1095 | ><HR><DIV |
| 1096 | CLASS="REFSECT2" |
| 1097 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 1098 | NAME="AEN9860" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1099 | ></A |
| 1100 | ><H3 |
| 1101 | ><A |
| 1102 | NAME="HTMLAUTOCLOSETAG" |
| 1103 | ></A |
| 1104 | >htmlAutoCloseTag ()</H3 |
| 1105 | ><TABLE |
| 1106 | BORDER="0" |
| 1107 | BGCOLOR="#D6E8FF" |
| 1108 | WIDTH="100%" |
| 1109 | CELLPADDING="6" |
| 1110 | ><TR |
| 1111 | ><TD |
| 1112 | ><PRE |
| 1113 | CLASS="PROGRAMLISTING" |
| 1114 | >int htmlAutoCloseTag (<A |
| 1115 | HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| 1116 | >htmlDocPtr</A |
| 1117 | > doc, |
| 1118 | const <A |
| 1119 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 1120 | >xmlChar</A |
| 1121 | > *name, |
| 1122 | <A |
| 1123 | HREF="gnome-xml-htmlparser.html#HTMLNODEPTR" |
| 1124 | >htmlNodePtr</A |
| 1125 | > elem);</PRE |
| 1126 | ></TD |
| 1127 | ></TR |
| 1128 | ></TABLE |
| 1129 | ><P |
| 1130 | >The HTmL DtD allows a tag to implicitely close other tags. |
| 1131 | The list is kept in htmlStartClose array. This function checks |
| 1132 | if the element or one of it's children would autoclose the |
| 1133 | given tag.</P |
| 1134 | ><P |
| 1135 | ></P |
| 1136 | ><DIV |
| 1137 | CLASS="INFORMALTABLE" |
| 1138 | ><P |
| 1139 | ></P |
| 1140 | ><TABLE |
| 1141 | BORDER="0" |
| 1142 | WIDTH="100%" |
| 1143 | BGCOLOR="#FFD0D0" |
| 1144 | CELLSPACING="0" |
| 1145 | CELLPADDING="4" |
| 1146 | CLASS="CALSTABLE" |
| 1147 | ><TR |
| 1148 | ><TD |
| 1149 | WIDTH="20%" |
| 1150 | ALIGN="RIGHT" |
| 1151 | VALIGN="TOP" |
| 1152 | ><TT |
| 1153 | CLASS="PARAMETER" |
| 1154 | ><I |
| 1155 | >doc</I |
| 1156 | ></TT |
| 1157 | > :</TD |
| 1158 | ><TD |
| 1159 | WIDTH="80%" |
| 1160 | ALIGN="LEFT" |
| 1161 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1162 | > the HTML document</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1163 | ></TR |
| 1164 | ><TR |
| 1165 | ><TD |
| 1166 | WIDTH="20%" |
| 1167 | ALIGN="RIGHT" |
| 1168 | VALIGN="TOP" |
| 1169 | ><TT |
| 1170 | CLASS="PARAMETER" |
| 1171 | ><I |
| 1172 | >name</I |
| 1173 | ></TT |
| 1174 | > :</TD |
| 1175 | ><TD |
| 1176 | WIDTH="80%" |
| 1177 | ALIGN="LEFT" |
| 1178 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1179 | > The tag name</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1180 | ></TR |
| 1181 | ><TR |
| 1182 | ><TD |
| 1183 | WIDTH="20%" |
| 1184 | ALIGN="RIGHT" |
| 1185 | VALIGN="TOP" |
| 1186 | ><TT |
| 1187 | CLASS="PARAMETER" |
| 1188 | ><I |
| 1189 | >elem</I |
| 1190 | ></TT |
| 1191 | > :</TD |
| 1192 | ><TD |
| 1193 | WIDTH="80%" |
| 1194 | ALIGN="LEFT" |
| 1195 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1196 | > the HTML element</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1197 | ></TR |
| 1198 | ><TR |
| 1199 | ><TD |
| 1200 | WIDTH="20%" |
| 1201 | ALIGN="RIGHT" |
| 1202 | VALIGN="TOP" |
| 1203 | ><I |
| 1204 | CLASS="EMPHASIS" |
| 1205 | >Returns</I |
| 1206 | > :</TD |
| 1207 | ><TD |
| 1208 | WIDTH="80%" |
| 1209 | ALIGN="LEFT" |
| 1210 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1211 | >1 if autoclose, 0 otherwise</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1212 | ></TR |
| 1213 | ></TABLE |
| 1214 | ><P |
| 1215 | ></P |
| 1216 | ></DIV |
| 1217 | ></DIV |
| 1218 | ><HR><DIV |
| 1219 | CLASS="REFSECT2" |
| 1220 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 1221 | NAME="AEN9890" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1222 | ></A |
| 1223 | ><H3 |
| 1224 | ><A |
| 1225 | NAME="HTMLPARSEENTITYREF" |
| 1226 | ></A |
| 1227 | >htmlParseEntityRef ()</H3 |
| 1228 | ><TABLE |
| 1229 | BORDER="0" |
| 1230 | BGCOLOR="#D6E8FF" |
| 1231 | WIDTH="100%" |
| 1232 | CELLPADDING="6" |
| 1233 | ><TR |
| 1234 | ><TD |
| 1235 | ><PRE |
| 1236 | CLASS="PROGRAMLISTING" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1237 | ><A |
| 1238 | HREF="gnome-xml-htmlparser.html#HTMLENTITYDESCPTR" |
| 1239 | >htmlEntityDescPtr</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1240 | > htmlParseEntityRef (<A |
| 1241 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR" |
| 1242 | >htmlParserCtxtPtr</A |
| 1243 | > ctxt, |
| 1244 | <A |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 1245 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 1246 | >xmlChar</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1247 | > **str);</PRE |
| 1248 | ></TD |
| 1249 | ></TR |
| 1250 | ></TABLE |
| 1251 | ><P |
| 1252 | >parse an HTML ENTITY references</P |
| 1253 | ><P |
| 1254 | >[68] EntityRef ::= '&' Name ';'</P |
| 1255 | ><P |
| 1256 | ></P |
| 1257 | ><DIV |
| 1258 | CLASS="INFORMALTABLE" |
| 1259 | ><P |
| 1260 | ></P |
| 1261 | ><TABLE |
| 1262 | BORDER="0" |
| 1263 | WIDTH="100%" |
| 1264 | BGCOLOR="#FFD0D0" |
| 1265 | CELLSPACING="0" |
| 1266 | CELLPADDING="4" |
| 1267 | CLASS="CALSTABLE" |
| 1268 | ><TR |
| 1269 | ><TD |
| 1270 | WIDTH="20%" |
| 1271 | ALIGN="RIGHT" |
| 1272 | VALIGN="TOP" |
| 1273 | ><TT |
| 1274 | CLASS="PARAMETER" |
| 1275 | ><I |
| 1276 | >ctxt</I |
| 1277 | ></TT |
| 1278 | > :</TD |
| 1279 | ><TD |
| 1280 | WIDTH="80%" |
| 1281 | ALIGN="LEFT" |
| 1282 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1283 | > an HTML parser context</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1284 | ></TR |
| 1285 | ><TR |
| 1286 | ><TD |
| 1287 | WIDTH="20%" |
| 1288 | ALIGN="RIGHT" |
| 1289 | VALIGN="TOP" |
| 1290 | ><TT |
| 1291 | CLASS="PARAMETER" |
| 1292 | ><I |
| 1293 | >str</I |
| 1294 | ></TT |
| 1295 | > :</TD |
| 1296 | ><TD |
| 1297 | WIDTH="80%" |
| 1298 | ALIGN="LEFT" |
| 1299 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1300 | > location to store the entity name</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1301 | ></TR |
| 1302 | ><TR |
| 1303 | ><TD |
| 1304 | WIDTH="20%" |
| 1305 | ALIGN="RIGHT" |
| 1306 | VALIGN="TOP" |
| 1307 | ><I |
| 1308 | CLASS="EMPHASIS" |
| 1309 | >Returns</I |
| 1310 | > :</TD |
| 1311 | ><TD |
| 1312 | WIDTH="80%" |
| 1313 | ALIGN="LEFT" |
| 1314 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1315 | >the associated htmlEntityDescPtr if found, or NULL otherwise, |
| 1316 | if non-NULL *str will have to be freed by the caller.</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1317 | ></TR |
| 1318 | ></TABLE |
| 1319 | ><P |
| 1320 | ></P |
| 1321 | ></DIV |
| 1322 | ></DIV |
| 1323 | ><HR><DIV |
| 1324 | CLASS="REFSECT2" |
| 1325 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 1326 | NAME="AEN9917" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1327 | ></A |
| 1328 | ><H3 |
| 1329 | ><A |
| 1330 | NAME="HTMLPARSECHARREF" |
| 1331 | ></A |
| 1332 | >htmlParseCharRef ()</H3 |
| 1333 | ><TABLE |
| 1334 | BORDER="0" |
| 1335 | BGCOLOR="#D6E8FF" |
| 1336 | WIDTH="100%" |
| 1337 | CELLPADDING="6" |
| 1338 | ><TR |
| 1339 | ><TD |
| 1340 | ><PRE |
| 1341 | CLASS="PROGRAMLISTING" |
| 1342 | >int htmlParseCharRef (<A |
| 1343 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR" |
| 1344 | >htmlParserCtxtPtr</A |
| 1345 | > ctxt);</PRE |
| 1346 | ></TD |
| 1347 | ></TR |
| 1348 | ></TABLE |
| 1349 | ><P |
| 1350 | >parse Reference declarations</P |
| 1351 | ><P |
| 1352 | >[66] CharRef ::= '&#' [0-9]+ ';' | |
| 1353 | '&<GTKDOCLINK |
| 1354 | HREF="X" |
| 1355 | >x</GTKDOCLINK |
| 1356 | >' [0-9a-fA-F]+ ';'</P |
| 1357 | ><P |
| 1358 | ></P |
| 1359 | ><DIV |
| 1360 | CLASS="INFORMALTABLE" |
| 1361 | ><P |
| 1362 | ></P |
| 1363 | ><TABLE |
| 1364 | BORDER="0" |
| 1365 | WIDTH="100%" |
| 1366 | BGCOLOR="#FFD0D0" |
| 1367 | CELLSPACING="0" |
| 1368 | CELLPADDING="4" |
| 1369 | CLASS="CALSTABLE" |
| 1370 | ><TR |
| 1371 | ><TD |
| 1372 | WIDTH="20%" |
| 1373 | ALIGN="RIGHT" |
| 1374 | VALIGN="TOP" |
| 1375 | ><TT |
| 1376 | CLASS="PARAMETER" |
| 1377 | ><I |
| 1378 | >ctxt</I |
| 1379 | ></TT |
| 1380 | > :</TD |
| 1381 | ><TD |
| 1382 | WIDTH="80%" |
| 1383 | ALIGN="LEFT" |
| 1384 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1385 | > an HTML parser context</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1386 | ></TR |
| 1387 | ><TR |
| 1388 | ><TD |
| 1389 | WIDTH="20%" |
| 1390 | ALIGN="RIGHT" |
| 1391 | VALIGN="TOP" |
| 1392 | ><I |
| 1393 | CLASS="EMPHASIS" |
| 1394 | >Returns</I |
| 1395 | > :</TD |
| 1396 | ><TD |
| 1397 | WIDTH="80%" |
| 1398 | ALIGN="LEFT" |
| 1399 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1400 | >the value parsed (as an int)</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1401 | ></TR |
| 1402 | ></TABLE |
| 1403 | ><P |
| 1404 | ></P |
| 1405 | ></DIV |
| 1406 | ></DIV |
| 1407 | ><HR><DIV |
| 1408 | CLASS="REFSECT2" |
| 1409 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 1410 | NAME="AEN9939" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1411 | ></A |
| 1412 | ><H3 |
| 1413 | ><A |
| 1414 | NAME="HTMLPARSEELEMENT" |
| 1415 | ></A |
| 1416 | >htmlParseElement ()</H3 |
| 1417 | ><TABLE |
| 1418 | BORDER="0" |
| 1419 | BGCOLOR="#D6E8FF" |
| 1420 | WIDTH="100%" |
| 1421 | CELLPADDING="6" |
| 1422 | ><TR |
| 1423 | ><TD |
| 1424 | ><PRE |
| 1425 | CLASS="PROGRAMLISTING" |
| 1426 | >void htmlParseElement (<A |
| 1427 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR" |
| 1428 | >htmlParserCtxtPtr</A |
| 1429 | > ctxt);</PRE |
| 1430 | ></TD |
| 1431 | ></TR |
| 1432 | ></TABLE |
| 1433 | ><P |
| 1434 | >parse an HTML element, this is highly recursive</P |
| 1435 | ><P |
| 1436 | >[39] element ::= EmptyElemTag | STag content ETag</P |
| 1437 | ><P |
| 1438 | >[41] Attribute ::= Name Eq AttValue</P |
| 1439 | ><P |
| 1440 | ></P |
| 1441 | ><DIV |
| 1442 | CLASS="INFORMALTABLE" |
| 1443 | ><P |
| 1444 | ></P |
| 1445 | ><TABLE |
| 1446 | BORDER="0" |
| 1447 | WIDTH="100%" |
| 1448 | BGCOLOR="#FFD0D0" |
| 1449 | CELLSPACING="0" |
| 1450 | CELLPADDING="4" |
| 1451 | CLASS="CALSTABLE" |
| 1452 | ><TR |
| 1453 | ><TD |
| 1454 | WIDTH="20%" |
| 1455 | ALIGN="RIGHT" |
| 1456 | VALIGN="TOP" |
| 1457 | ><TT |
| 1458 | CLASS="PARAMETER" |
| 1459 | ><I |
| 1460 | >ctxt</I |
| 1461 | ></TT |
| 1462 | > :</TD |
| 1463 | ><TD |
| 1464 | WIDTH="80%" |
| 1465 | ALIGN="LEFT" |
| 1466 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1467 | > an HTML parser context</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1468 | ></TR |
| 1469 | ></TABLE |
| 1470 | ><P |
| 1471 | ></P |
| 1472 | ></DIV |
| 1473 | ></DIV |
| 1474 | ><HR><DIV |
| 1475 | CLASS="REFSECT2" |
| 1476 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 1477 | NAME="AEN9957" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1478 | ></A |
| 1479 | ><H3 |
| 1480 | ><A |
| 1481 | NAME="HTMLSAXPARSEDOC" |
| 1482 | ></A |
| 1483 | >htmlSAXParseDoc ()</H3 |
| 1484 | ><TABLE |
| 1485 | BORDER="0" |
| 1486 | BGCOLOR="#D6E8FF" |
| 1487 | WIDTH="100%" |
| 1488 | CELLPADDING="6" |
| 1489 | ><TR |
| 1490 | ><TD |
| 1491 | ><PRE |
| 1492 | CLASS="PROGRAMLISTING" |
| 1493 | ><A |
| 1494 | HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| 1495 | >htmlDocPtr</A |
| 1496 | > htmlSAXParseDoc (<A |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 1497 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 1498 | >xmlChar</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1499 | > *cur, |
| 1500 | const char *encoding, |
| 1501 | <A |
| 1502 | HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR" |
| 1503 | >htmlSAXHandlerPtr</A |
| 1504 | > sax, |
| 1505 | void *userData);</PRE |
| 1506 | ></TD |
| 1507 | ></TR |
| 1508 | ></TABLE |
| 1509 | ><P |
| 1510 | >parse an HTML in-memory document and build a tree. |
| 1511 | It use the given SAX function block to handle the parsing callback. |
| 1512 | If sax is NULL, fallback to the default DOM tree building routines.</P |
| 1513 | ><P |
| 1514 | ></P |
| 1515 | ><DIV |
| 1516 | CLASS="INFORMALTABLE" |
| 1517 | ><P |
| 1518 | ></P |
| 1519 | ><TABLE |
| 1520 | BORDER="0" |
| 1521 | WIDTH="100%" |
| 1522 | BGCOLOR="#FFD0D0" |
| 1523 | CELLSPACING="0" |
| 1524 | CELLPADDING="4" |
| 1525 | CLASS="CALSTABLE" |
| 1526 | ><TR |
| 1527 | ><TD |
| 1528 | WIDTH="20%" |
| 1529 | ALIGN="RIGHT" |
| 1530 | VALIGN="TOP" |
| 1531 | ><TT |
| 1532 | CLASS="PARAMETER" |
| 1533 | ><I |
| 1534 | >cur</I |
| 1535 | ></TT |
| 1536 | > :</TD |
| 1537 | ><TD |
| 1538 | WIDTH="80%" |
| 1539 | ALIGN="LEFT" |
| 1540 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1541 | > a pointer to an array of xmlChar</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1542 | ></TR |
| 1543 | ><TR |
| 1544 | ><TD |
| 1545 | WIDTH="20%" |
| 1546 | ALIGN="RIGHT" |
| 1547 | VALIGN="TOP" |
| 1548 | ><TT |
| 1549 | CLASS="PARAMETER" |
| 1550 | ><I |
| 1551 | >encoding</I |
| 1552 | ></TT |
| 1553 | > :</TD |
| 1554 | ><TD |
| 1555 | WIDTH="80%" |
| 1556 | ALIGN="LEFT" |
| 1557 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1558 | > a free form C string describing the HTML document encoding, or NULL</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1559 | ></TR |
| 1560 | ><TR |
| 1561 | ><TD |
| 1562 | WIDTH="20%" |
| 1563 | ALIGN="RIGHT" |
| 1564 | VALIGN="TOP" |
| 1565 | ><TT |
| 1566 | CLASS="PARAMETER" |
| 1567 | ><I |
| 1568 | >sax</I |
| 1569 | ></TT |
| 1570 | > :</TD |
| 1571 | ><TD |
| 1572 | WIDTH="80%" |
| 1573 | ALIGN="LEFT" |
| 1574 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1575 | > the SAX handler block</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1576 | ></TR |
| 1577 | ><TR |
| 1578 | ><TD |
| 1579 | WIDTH="20%" |
| 1580 | ALIGN="RIGHT" |
| 1581 | VALIGN="TOP" |
| 1582 | ><TT |
| 1583 | CLASS="PARAMETER" |
| 1584 | ><I |
| 1585 | >userData</I |
| 1586 | ></TT |
| 1587 | > :</TD |
| 1588 | ><TD |
| 1589 | WIDTH="80%" |
| 1590 | ALIGN="LEFT" |
| 1591 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1592 | > if using SAX, this pointer will be provided on callbacks. </TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1593 | ></TR |
| 1594 | ><TR |
| 1595 | ><TD |
| 1596 | WIDTH="20%" |
| 1597 | ALIGN="RIGHT" |
| 1598 | VALIGN="TOP" |
| 1599 | ><I |
| 1600 | CLASS="EMPHASIS" |
| 1601 | >Returns</I |
| 1602 | > :</TD |
| 1603 | ><TD |
| 1604 | WIDTH="80%" |
| 1605 | ALIGN="LEFT" |
| 1606 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1607 | >the resulting document tree</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1608 | ></TR |
| 1609 | ></TABLE |
| 1610 | ><P |
| 1611 | ></P |
| 1612 | ></DIV |
| 1613 | ></DIV |
| 1614 | ><HR><DIV |
| 1615 | CLASS="REFSECT2" |
| 1616 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 1617 | NAME="AEN9991" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1618 | ></A |
| 1619 | ><H3 |
| 1620 | ><A |
| 1621 | NAME="HTMLPARSEDOC" |
| 1622 | ></A |
| 1623 | >htmlParseDoc ()</H3 |
| 1624 | ><TABLE |
| 1625 | BORDER="0" |
| 1626 | BGCOLOR="#D6E8FF" |
| 1627 | WIDTH="100%" |
| 1628 | CELLPADDING="6" |
| 1629 | ><TR |
| 1630 | ><TD |
| 1631 | ><PRE |
| 1632 | CLASS="PROGRAMLISTING" |
| 1633 | ><A |
| 1634 | HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| 1635 | >htmlDocPtr</A |
| 1636 | > htmlParseDoc (<A |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 1637 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 1638 | >xmlChar</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1639 | > *cur, |
| 1640 | const char *encoding);</PRE |
| 1641 | ></TD |
| 1642 | ></TR |
| 1643 | ></TABLE |
| 1644 | ><P |
| 1645 | >parse an HTML in-memory document and build a tree.</P |
| 1646 | ><P |
| 1647 | ></P |
| 1648 | ><DIV |
| 1649 | CLASS="INFORMALTABLE" |
| 1650 | ><P |
| 1651 | ></P |
| 1652 | ><TABLE |
| 1653 | BORDER="0" |
| 1654 | WIDTH="100%" |
| 1655 | BGCOLOR="#FFD0D0" |
| 1656 | CELLSPACING="0" |
| 1657 | CELLPADDING="4" |
| 1658 | CLASS="CALSTABLE" |
| 1659 | ><TR |
| 1660 | ><TD |
| 1661 | WIDTH="20%" |
| 1662 | ALIGN="RIGHT" |
| 1663 | VALIGN="TOP" |
| 1664 | ><TT |
| 1665 | CLASS="PARAMETER" |
| 1666 | ><I |
| 1667 | >cur</I |
| 1668 | ></TT |
| 1669 | > :</TD |
| 1670 | ><TD |
| 1671 | WIDTH="80%" |
| 1672 | ALIGN="LEFT" |
| 1673 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1674 | > a pointer to an array of xmlChar</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1675 | ></TR |
| 1676 | ><TR |
| 1677 | ><TD |
| 1678 | WIDTH="20%" |
| 1679 | ALIGN="RIGHT" |
| 1680 | VALIGN="TOP" |
| 1681 | ><TT |
| 1682 | CLASS="PARAMETER" |
| 1683 | ><I |
| 1684 | >encoding</I |
| 1685 | ></TT |
| 1686 | > :</TD |
| 1687 | ><TD |
| 1688 | WIDTH="80%" |
| 1689 | ALIGN="LEFT" |
| 1690 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1691 | > a free form C string describing the HTML document encoding, or NULL</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1692 | ></TR |
| 1693 | ><TR |
| 1694 | ><TD |
| 1695 | WIDTH="20%" |
| 1696 | ALIGN="RIGHT" |
| 1697 | VALIGN="TOP" |
| 1698 | ><I |
| 1699 | CLASS="EMPHASIS" |
| 1700 | >Returns</I |
| 1701 | > :</TD |
| 1702 | ><TD |
| 1703 | WIDTH="80%" |
| 1704 | ALIGN="LEFT" |
| 1705 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1706 | >the resulting document tree</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1707 | ></TR |
| 1708 | ></TABLE |
| 1709 | ><P |
| 1710 | ></P |
| 1711 | ></DIV |
| 1712 | ></DIV |
| 1713 | ><HR><DIV |
| 1714 | CLASS="REFSECT2" |
| 1715 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 1716 | NAME="AEN10016" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1717 | ></A |
| 1718 | ><H3 |
| 1719 | ><A |
| 1720 | NAME="HTMLSAXPARSEFILE" |
| 1721 | ></A |
| 1722 | >htmlSAXParseFile ()</H3 |
| 1723 | ><TABLE |
| 1724 | BORDER="0" |
| 1725 | BGCOLOR="#D6E8FF" |
| 1726 | WIDTH="100%" |
| 1727 | CELLPADDING="6" |
| 1728 | ><TR |
| 1729 | ><TD |
| 1730 | ><PRE |
| 1731 | CLASS="PROGRAMLISTING" |
| 1732 | ><A |
| 1733 | HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| 1734 | >htmlDocPtr</A |
| 1735 | > htmlSAXParseFile (const char *filename, |
| 1736 | const char *encoding, |
| 1737 | <A |
| 1738 | HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR" |
| 1739 | >htmlSAXHandlerPtr</A |
| 1740 | > sax, |
| 1741 | void *userData);</PRE |
| 1742 | ></TD |
| 1743 | ></TR |
| 1744 | ></TABLE |
| 1745 | ><P |
| 1746 | >parse an HTML file and build a tree. Automatic support for ZLIB/Compress |
| 1747 | compressed document is provided by default if found at compile-time. |
| 1748 | It use the given SAX function block to handle the parsing callback. |
| 1749 | If sax is NULL, fallback to the default DOM tree building routines.</P |
| 1750 | ><P |
| 1751 | ></P |
| 1752 | ><DIV |
| 1753 | CLASS="INFORMALTABLE" |
| 1754 | ><P |
| 1755 | ></P |
| 1756 | ><TABLE |
| 1757 | BORDER="0" |
| 1758 | WIDTH="100%" |
| 1759 | BGCOLOR="#FFD0D0" |
| 1760 | CELLSPACING="0" |
| 1761 | CELLPADDING="4" |
| 1762 | CLASS="CALSTABLE" |
| 1763 | ><TR |
| 1764 | ><TD |
| 1765 | WIDTH="20%" |
| 1766 | ALIGN="RIGHT" |
| 1767 | VALIGN="TOP" |
| 1768 | ><TT |
| 1769 | CLASS="PARAMETER" |
| 1770 | ><I |
| 1771 | >filename</I |
| 1772 | ></TT |
| 1773 | > :</TD |
| 1774 | ><TD |
| 1775 | WIDTH="80%" |
| 1776 | ALIGN="LEFT" |
| 1777 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1778 | > the filename</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1779 | ></TR |
| 1780 | ><TR |
| 1781 | ><TD |
| 1782 | WIDTH="20%" |
| 1783 | ALIGN="RIGHT" |
| 1784 | VALIGN="TOP" |
| 1785 | ><TT |
| 1786 | CLASS="PARAMETER" |
| 1787 | ><I |
| 1788 | >encoding</I |
| 1789 | ></TT |
| 1790 | > :</TD |
| 1791 | ><TD |
| 1792 | WIDTH="80%" |
| 1793 | ALIGN="LEFT" |
| 1794 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1795 | > a free form C string describing the HTML document encoding, or NULL</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1796 | ></TR |
| 1797 | ><TR |
| 1798 | ><TD |
| 1799 | WIDTH="20%" |
| 1800 | ALIGN="RIGHT" |
| 1801 | VALIGN="TOP" |
| 1802 | ><TT |
| 1803 | CLASS="PARAMETER" |
| 1804 | ><I |
| 1805 | >sax</I |
| 1806 | ></TT |
| 1807 | > :</TD |
| 1808 | ><TD |
| 1809 | WIDTH="80%" |
| 1810 | ALIGN="LEFT" |
| 1811 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1812 | > the SAX handler block</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1813 | ></TR |
| 1814 | ><TR |
| 1815 | ><TD |
| 1816 | WIDTH="20%" |
| 1817 | ALIGN="RIGHT" |
| 1818 | VALIGN="TOP" |
| 1819 | ><TT |
| 1820 | CLASS="PARAMETER" |
| 1821 | ><I |
| 1822 | >userData</I |
| 1823 | ></TT |
| 1824 | > :</TD |
| 1825 | ><TD |
| 1826 | WIDTH="80%" |
| 1827 | ALIGN="LEFT" |
| 1828 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1829 | > if using SAX, this pointer will be provided on callbacks. </TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1830 | ></TR |
| 1831 | ><TR |
| 1832 | ><TD |
| 1833 | WIDTH="20%" |
| 1834 | ALIGN="RIGHT" |
| 1835 | VALIGN="TOP" |
| 1836 | ><I |
| 1837 | CLASS="EMPHASIS" |
| 1838 | >Returns</I |
| 1839 | > :</TD |
| 1840 | ><TD |
| 1841 | WIDTH="80%" |
| 1842 | ALIGN="LEFT" |
| 1843 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1844 | >the resulting document tree</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1845 | ></TR |
| 1846 | ></TABLE |
| 1847 | ><P |
| 1848 | ></P |
| 1849 | ></DIV |
| 1850 | ></DIV |
| 1851 | ><HR><DIV |
| 1852 | CLASS="REFSECT2" |
| 1853 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 1854 | NAME="AEN10049" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1855 | ></A |
| 1856 | ><H3 |
| 1857 | ><A |
| 1858 | NAME="HTMLPARSEFILE" |
| 1859 | ></A |
| 1860 | >htmlParseFile ()</H3 |
| 1861 | ><TABLE |
| 1862 | BORDER="0" |
| 1863 | BGCOLOR="#D6E8FF" |
| 1864 | WIDTH="100%" |
| 1865 | CELLPADDING="6" |
| 1866 | ><TR |
| 1867 | ><TD |
| 1868 | ><PRE |
| 1869 | CLASS="PROGRAMLISTING" |
| 1870 | ><A |
| 1871 | HREF="gnome-xml-htmlparser.html#HTMLDOCPTR" |
| 1872 | >htmlDocPtr</A |
| 1873 | > htmlParseFile (const char *filename, |
| 1874 | const char *encoding);</PRE |
| 1875 | ></TD |
| 1876 | ></TR |
| 1877 | ></TABLE |
| 1878 | ><P |
| 1879 | >parse an HTML file and build a tree. Automatic support for ZLIB/Compress |
| 1880 | compressed document is provided by default if found at compile-time.</P |
| 1881 | ><P |
| 1882 | ></P |
| 1883 | ><DIV |
| 1884 | CLASS="INFORMALTABLE" |
| 1885 | ><P |
| 1886 | ></P |
| 1887 | ><TABLE |
| 1888 | BORDER="0" |
| 1889 | WIDTH="100%" |
| 1890 | BGCOLOR="#FFD0D0" |
| 1891 | CELLSPACING="0" |
| 1892 | CELLPADDING="4" |
| 1893 | CLASS="CALSTABLE" |
| 1894 | ><TR |
| 1895 | ><TD |
| 1896 | WIDTH="20%" |
| 1897 | ALIGN="RIGHT" |
| 1898 | VALIGN="TOP" |
| 1899 | ><TT |
| 1900 | CLASS="PARAMETER" |
| 1901 | ><I |
| 1902 | >filename</I |
| 1903 | ></TT |
| 1904 | > :</TD |
| 1905 | ><TD |
| 1906 | WIDTH="80%" |
| 1907 | ALIGN="LEFT" |
| 1908 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1909 | > the filename</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1910 | ></TR |
| 1911 | ><TR |
| 1912 | ><TD |
| 1913 | WIDTH="20%" |
| 1914 | ALIGN="RIGHT" |
| 1915 | VALIGN="TOP" |
| 1916 | ><TT |
| 1917 | CLASS="PARAMETER" |
| 1918 | ><I |
| 1919 | >encoding</I |
| 1920 | ></TT |
| 1921 | > :</TD |
| 1922 | ><TD |
| 1923 | WIDTH="80%" |
| 1924 | ALIGN="LEFT" |
| 1925 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1926 | > a free form C string describing the HTML document encoding, or NULL</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1927 | ></TR |
| 1928 | ><TR |
| 1929 | ><TD |
| 1930 | WIDTH="20%" |
| 1931 | ALIGN="RIGHT" |
| 1932 | VALIGN="TOP" |
| 1933 | ><I |
| 1934 | CLASS="EMPHASIS" |
| 1935 | >Returns</I |
| 1936 | > :</TD |
| 1937 | ><TD |
| 1938 | WIDTH="80%" |
| 1939 | ALIGN="LEFT" |
| 1940 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1941 | >the resulting document tree</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1942 | ></TR |
| 1943 | ></TABLE |
| 1944 | ><P |
| 1945 | ></P |
| 1946 | ></DIV |
| 1947 | ></DIV |
| 1948 | ><HR><DIV |
| 1949 | CLASS="REFSECT2" |
| 1950 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 1951 | NAME="AEN10073" |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 1952 | ></A |
| 1953 | ><H3 |
| 1954 | ><A |
| 1955 | NAME="UTF8TOHTML" |
| 1956 | ></A |
| 1957 | >UTF8ToHtml ()</H3 |
| 1958 | ><TABLE |
| 1959 | BORDER="0" |
| 1960 | BGCOLOR="#D6E8FF" |
| 1961 | WIDTH="100%" |
| 1962 | CELLPADDING="6" |
| 1963 | ><TR |
| 1964 | ><TD |
| 1965 | ><PRE |
| 1966 | CLASS="PROGRAMLISTING" |
| 1967 | >int UTF8ToHtml (unsigned char *out, |
| 1968 | int *outlen, |
| 1969 | unsigned char *in, |
| 1970 | int *inlen);</PRE |
| 1971 | ></TD |
| 1972 | ></TR |
| 1973 | ></TABLE |
| 1974 | ><P |
| 1975 | >Take a block of UTF-8 chars in and try to convert it to an ASCII |
| 1976 | plus HTML entities block of chars out.</P |
| 1977 | ><P |
| 1978 | ></P |
| 1979 | ><DIV |
| 1980 | CLASS="INFORMALTABLE" |
| 1981 | ><P |
| 1982 | ></P |
| 1983 | ><TABLE |
| 1984 | BORDER="0" |
| 1985 | WIDTH="100%" |
| 1986 | BGCOLOR="#FFD0D0" |
| 1987 | CELLSPACING="0" |
| 1988 | CELLPADDING="4" |
| 1989 | CLASS="CALSTABLE" |
| 1990 | ><TR |
| 1991 | ><TD |
| 1992 | WIDTH="20%" |
| 1993 | ALIGN="RIGHT" |
| 1994 | VALIGN="TOP" |
| 1995 | ><TT |
| 1996 | CLASS="PARAMETER" |
| 1997 | ><I |
| 1998 | >out</I |
| 1999 | ></TT |
| 2000 | > :</TD |
| 2001 | ><TD |
| 2002 | WIDTH="80%" |
| 2003 | ALIGN="LEFT" |
| 2004 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2005 | > a pointer to an array of bytes to store the result</TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2006 | ></TR |
| 2007 | ><TR |
| 2008 | ><TD |
| 2009 | WIDTH="20%" |
| 2010 | ALIGN="RIGHT" |
| 2011 | VALIGN="TOP" |
| 2012 | ><TT |
| 2013 | CLASS="PARAMETER" |
| 2014 | ><I |
| 2015 | >outlen</I |
| 2016 | ></TT |
| 2017 | > :</TD |
| 2018 | ><TD |
| 2019 | WIDTH="80%" |
| 2020 | ALIGN="LEFT" |
| 2021 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2022 | > the length of <TT |
| 2023 | CLASS="PARAMETER" |
| 2024 | ><I |
| 2025 | >out</I |
| 2026 | ></TT |
| 2027 | ></TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2028 | ></TR |
| 2029 | ><TR |
| 2030 | ><TD |
| 2031 | WIDTH="20%" |
| 2032 | ALIGN="RIGHT" |
| 2033 | VALIGN="TOP" |
| 2034 | ><TT |
| 2035 | CLASS="PARAMETER" |
| 2036 | ><I |
| 2037 | >in</I |
| 2038 | ></TT |
| 2039 | > :</TD |
| 2040 | ><TD |
| 2041 | WIDTH="80%" |
| 2042 | ALIGN="LEFT" |
| 2043 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2044 | > a pointer to an array of UTF-8 chars</TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2045 | ></TR |
| 2046 | ><TR |
| 2047 | ><TD |
| 2048 | WIDTH="20%" |
| 2049 | ALIGN="RIGHT" |
| 2050 | VALIGN="TOP" |
| 2051 | ><TT |
| 2052 | CLASS="PARAMETER" |
| 2053 | ><I |
| 2054 | >inlen</I |
| 2055 | ></TT |
| 2056 | > :</TD |
| 2057 | ><TD |
| 2058 | WIDTH="80%" |
| 2059 | ALIGN="LEFT" |
| 2060 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2061 | > the length of <TT |
| 2062 | CLASS="PARAMETER" |
| 2063 | ><I |
| 2064 | >in</I |
| 2065 | ></TT |
| 2066 | ></TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2067 | ></TR |
| 2068 | ><TR |
| 2069 | ><TD |
| 2070 | WIDTH="20%" |
| 2071 | ALIGN="RIGHT" |
| 2072 | VALIGN="TOP" |
| 2073 | ><I |
| 2074 | CLASS="EMPHASIS" |
| 2075 | >Returns</I |
| 2076 | > :</TD |
| 2077 | ><TD |
| 2078 | WIDTH="80%" |
| 2079 | ALIGN="LEFT" |
| 2080 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2081 | >0 if success, -2 if the transcoding fails, or -1 otherwise |
| 2082 | The value of <TT |
| 2083 | CLASS="PARAMETER" |
| 2084 | ><I |
| 2085 | >inlen</I |
| 2086 | ></TT |
| 2087 | > after return is the number of octets consumed |
| 2088 | as the return value is positive, else unpredictiable. |
| 2089 | The value of <TT |
| 2090 | CLASS="PARAMETER" |
| 2091 | ><I |
| 2092 | >outlen</I |
| 2093 | ></TT |
| 2094 | > after return is the number of octets consumed.</TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2095 | ></TR |
| 2096 | ></TABLE |
| 2097 | ><P |
| 2098 | ></P |
| 2099 | ></DIV |
| 2100 | ></DIV |
| 2101 | ><HR><DIV |
| 2102 | CLASS="REFSECT2" |
| 2103 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 2104 | NAME="AEN10108" |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2105 | ></A |
| 2106 | ><H3 |
| 2107 | ><A |
| 2108 | NAME="HTMLENCODEENTITIES" |
| 2109 | ></A |
| 2110 | >htmlEncodeEntities ()</H3 |
| 2111 | ><TABLE |
| 2112 | BORDER="0" |
| 2113 | BGCOLOR="#D6E8FF" |
| 2114 | WIDTH="100%" |
| 2115 | CELLPADDING="6" |
| 2116 | ><TR |
| 2117 | ><TD |
| 2118 | ><PRE |
| 2119 | CLASS="PROGRAMLISTING" |
| 2120 | >int htmlEncodeEntities (unsigned char *out, |
| 2121 | int *outlen, |
| 2122 | unsigned char *in, |
| 2123 | int *inlen, |
| 2124 | int quoteChar);</PRE |
| 2125 | ></TD |
| 2126 | ></TR |
| 2127 | ></TABLE |
| 2128 | ><P |
| 2129 | >Take a block of UTF-8 chars in and try to convert it to an ASCII |
| 2130 | plus HTML entities block of chars out.</P |
| 2131 | ><P |
| 2132 | ></P |
| 2133 | ><DIV |
| 2134 | CLASS="INFORMALTABLE" |
| 2135 | ><P |
| 2136 | ></P |
| 2137 | ><TABLE |
| 2138 | BORDER="0" |
| 2139 | WIDTH="100%" |
| 2140 | BGCOLOR="#FFD0D0" |
| 2141 | CELLSPACING="0" |
| 2142 | CELLPADDING="4" |
| 2143 | CLASS="CALSTABLE" |
| 2144 | ><TR |
| 2145 | ><TD |
| 2146 | WIDTH="20%" |
| 2147 | ALIGN="RIGHT" |
| 2148 | VALIGN="TOP" |
| 2149 | ><TT |
| 2150 | CLASS="PARAMETER" |
| 2151 | ><I |
| 2152 | >out</I |
| 2153 | ></TT |
| 2154 | > :</TD |
| 2155 | ><TD |
| 2156 | WIDTH="80%" |
| 2157 | ALIGN="LEFT" |
| 2158 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2159 | > a pointer to an array of bytes to store the result</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2160 | ></TR |
| 2161 | ><TR |
| 2162 | ><TD |
| 2163 | WIDTH="20%" |
| 2164 | ALIGN="RIGHT" |
| 2165 | VALIGN="TOP" |
| 2166 | ><TT |
| 2167 | CLASS="PARAMETER" |
| 2168 | ><I |
| 2169 | >outlen</I |
| 2170 | ></TT |
| 2171 | > :</TD |
| 2172 | ><TD |
| 2173 | WIDTH="80%" |
| 2174 | ALIGN="LEFT" |
| 2175 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2176 | > the length of <TT |
| 2177 | CLASS="PARAMETER" |
| 2178 | ><I |
| 2179 | >out</I |
| 2180 | ></TT |
| 2181 | ></TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2182 | ></TR |
| 2183 | ><TR |
| 2184 | ><TD |
| 2185 | WIDTH="20%" |
| 2186 | ALIGN="RIGHT" |
| 2187 | VALIGN="TOP" |
| 2188 | ><TT |
| 2189 | CLASS="PARAMETER" |
| 2190 | ><I |
| 2191 | >in</I |
| 2192 | ></TT |
| 2193 | > :</TD |
| 2194 | ><TD |
| 2195 | WIDTH="80%" |
| 2196 | ALIGN="LEFT" |
| 2197 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2198 | > a pointer to an array of UTF-8 chars</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2199 | ></TR |
| 2200 | ><TR |
| 2201 | ><TD |
| 2202 | WIDTH="20%" |
| 2203 | ALIGN="RIGHT" |
| 2204 | VALIGN="TOP" |
| 2205 | ><TT |
| 2206 | CLASS="PARAMETER" |
| 2207 | ><I |
| 2208 | >inlen</I |
| 2209 | ></TT |
| 2210 | > :</TD |
| 2211 | ><TD |
| 2212 | WIDTH="80%" |
| 2213 | ALIGN="LEFT" |
| 2214 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2215 | > the length of <TT |
| 2216 | CLASS="PARAMETER" |
| 2217 | ><I |
| 2218 | >in</I |
| 2219 | ></TT |
| 2220 | ></TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2221 | ></TR |
| 2222 | ><TR |
| 2223 | ><TD |
| 2224 | WIDTH="20%" |
| 2225 | ALIGN="RIGHT" |
| 2226 | VALIGN="TOP" |
| 2227 | ><TT |
| 2228 | CLASS="PARAMETER" |
| 2229 | ><I |
| 2230 | >quoteChar</I |
| 2231 | ></TT |
| 2232 | > :</TD |
| 2233 | ><TD |
| 2234 | WIDTH="80%" |
| 2235 | ALIGN="LEFT" |
| 2236 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2237 | > the quote character to escape (' or ") or zero.</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2238 | ></TR |
| 2239 | ><TR |
| 2240 | ><TD |
| 2241 | WIDTH="20%" |
| 2242 | ALIGN="RIGHT" |
| 2243 | VALIGN="TOP" |
| 2244 | ><I |
| 2245 | CLASS="EMPHASIS" |
| 2246 | >Returns</I |
| 2247 | > :</TD |
| 2248 | ><TD |
| 2249 | WIDTH="80%" |
| 2250 | ALIGN="LEFT" |
| 2251 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2252 | >0 if success, -2 if the transcoding fails, or -1 otherwise |
| 2253 | The value of <TT |
| 2254 | CLASS="PARAMETER" |
| 2255 | ><I |
| 2256 | >inlen</I |
| 2257 | ></TT |
| 2258 | > after return is the number of octets consumed |
| 2259 | as the return value is positive, else unpredictiable. |
| 2260 | The value of <TT |
| 2261 | CLASS="PARAMETER" |
| 2262 | ><I |
| 2263 | >outlen</I |
| 2264 | ></TT |
| 2265 | > after return is the number of octets consumed.</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2266 | ></TR |
| 2267 | ></TABLE |
| 2268 | ><P |
| 2269 | ></P |
| 2270 | ></DIV |
| 2271 | ></DIV |
| 2272 | ><HR><DIV |
| 2273 | CLASS="REFSECT2" |
| 2274 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 2275 | NAME="AEN10147" |
Daniel Veillard | 29a11cc | 2000-10-25 13:32:39 +0000 | [diff] [blame] | 2276 | ></A |
| 2277 | ><H3 |
| 2278 | ><A |
| 2279 | NAME="HTMLISSCRIPTATTRIBUTE" |
| 2280 | ></A |
| 2281 | >htmlIsScriptAttribute ()</H3 |
| 2282 | ><TABLE |
| 2283 | BORDER="0" |
| 2284 | BGCOLOR="#D6E8FF" |
| 2285 | WIDTH="100%" |
| 2286 | CELLPADDING="6" |
| 2287 | ><TR |
| 2288 | ><TD |
| 2289 | ><PRE |
| 2290 | CLASS="PROGRAMLISTING" |
| 2291 | >int htmlIsScriptAttribute (const <A |
| 2292 | HREF="gnome-xml-tree.html#XMLCHAR" |
| 2293 | >xmlChar</A |
| 2294 | > *name);</PRE |
| 2295 | ></TD |
| 2296 | ></TR |
| 2297 | ></TABLE |
| 2298 | ><P |
| 2299 | >Check if an attribute is of content type Script</P |
| 2300 | ><P |
| 2301 | ></P |
| 2302 | ><DIV |
| 2303 | CLASS="INFORMALTABLE" |
| 2304 | ><P |
| 2305 | ></P |
| 2306 | ><TABLE |
| 2307 | BORDER="0" |
| 2308 | WIDTH="100%" |
| 2309 | BGCOLOR="#FFD0D0" |
| 2310 | CELLSPACING="0" |
| 2311 | CELLPADDING="4" |
| 2312 | CLASS="CALSTABLE" |
| 2313 | ><TR |
| 2314 | ><TD |
| 2315 | WIDTH="20%" |
| 2316 | ALIGN="RIGHT" |
| 2317 | VALIGN="TOP" |
| 2318 | ><TT |
| 2319 | CLASS="PARAMETER" |
| 2320 | ><I |
| 2321 | >name</I |
| 2322 | ></TT |
| 2323 | > :</TD |
| 2324 | ><TD |
| 2325 | WIDTH="80%" |
| 2326 | ALIGN="LEFT" |
| 2327 | VALIGN="TOP" |
| 2328 | > an attribute name</TD |
| 2329 | ></TR |
| 2330 | ><TR |
| 2331 | ><TD |
| 2332 | WIDTH="20%" |
| 2333 | ALIGN="RIGHT" |
| 2334 | VALIGN="TOP" |
| 2335 | ><I |
| 2336 | CLASS="EMPHASIS" |
| 2337 | >Returns</I |
| 2338 | > :</TD |
| 2339 | ><TD |
| 2340 | WIDTH="80%" |
| 2341 | ALIGN="LEFT" |
| 2342 | VALIGN="TOP" |
| 2343 | >1 is the attribute is a script 0 otherwise</TD |
| 2344 | ></TR |
| 2345 | ></TABLE |
| 2346 | ><P |
| 2347 | ></P |
| 2348 | ></DIV |
| 2349 | ></DIV |
| 2350 | ><HR><DIV |
| 2351 | CLASS="REFSECT2" |
| 2352 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 2353 | NAME="AEN10167" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2354 | ></A |
| 2355 | ><H3 |
| 2356 | ><A |
| 2357 | NAME="HTMLFREEPARSERCTXT" |
| 2358 | ></A |
| 2359 | >htmlFreeParserCtxt ()</H3 |
| 2360 | ><TABLE |
| 2361 | BORDER="0" |
| 2362 | BGCOLOR="#D6E8FF" |
| 2363 | WIDTH="100%" |
| 2364 | CELLPADDING="6" |
| 2365 | ><TR |
| 2366 | ><TD |
| 2367 | ><PRE |
| 2368 | CLASS="PROGRAMLISTING" |
| 2369 | >void htmlFreeParserCtxt (<A |
| 2370 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR" |
| 2371 | >htmlParserCtxtPtr</A |
| 2372 | > ctxt);</PRE |
| 2373 | ></TD |
| 2374 | ></TR |
| 2375 | ></TABLE |
| 2376 | ><P |
| 2377 | >Free all the memory used by a parser context. However the parsed |
| 2378 | document in ctxt->myDoc is not freed.</P |
| 2379 | ><P |
| 2380 | ></P |
| 2381 | ><DIV |
| 2382 | CLASS="INFORMALTABLE" |
| 2383 | ><P |
| 2384 | ></P |
| 2385 | ><TABLE |
| 2386 | BORDER="0" |
| 2387 | WIDTH="100%" |
| 2388 | BGCOLOR="#FFD0D0" |
| 2389 | CELLSPACING="0" |
| 2390 | CELLPADDING="4" |
| 2391 | CLASS="CALSTABLE" |
| 2392 | ><TR |
| 2393 | ><TD |
| 2394 | WIDTH="20%" |
| 2395 | ALIGN="RIGHT" |
| 2396 | VALIGN="TOP" |
| 2397 | ><TT |
| 2398 | CLASS="PARAMETER" |
| 2399 | ><I |
| 2400 | >ctxt</I |
| 2401 | ></TT |
| 2402 | > :</TD |
| 2403 | ><TD |
| 2404 | WIDTH="80%" |
| 2405 | ALIGN="LEFT" |
| 2406 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2407 | > an HTML parser context</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2408 | ></TR |
| 2409 | ></TABLE |
| 2410 | ><P |
| 2411 | ></P |
| 2412 | ></DIV |
| 2413 | ></DIV |
| 2414 | ><HR><DIV |
| 2415 | CLASS="REFSECT2" |
| 2416 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 2417 | NAME="AEN10183" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2418 | ></A |
| 2419 | ><H3 |
| 2420 | ><A |
| 2421 | NAME="HTMLCREATEPUSHPARSERCTXT" |
| 2422 | ></A |
| 2423 | >htmlCreatePushParserCtxt ()</H3 |
| 2424 | ><TABLE |
| 2425 | BORDER="0" |
| 2426 | BGCOLOR="#D6E8FF" |
| 2427 | WIDTH="100%" |
| 2428 | CELLPADDING="6" |
| 2429 | ><TR |
| 2430 | ><TD |
| 2431 | ><PRE |
| 2432 | CLASS="PROGRAMLISTING" |
| 2433 | ><A |
| 2434 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR" |
| 2435 | >htmlParserCtxtPtr</A |
| 2436 | > htmlCreatePushParserCtxt (<A |
| 2437 | HREF="gnome-xml-htmlparser.html#HTMLSAXHANDLERPTR" |
| 2438 | >htmlSAXHandlerPtr</A |
| 2439 | > sax, |
| 2440 | void *user_data, |
| 2441 | const char *chunk, |
| 2442 | int size, |
| 2443 | const char *filename, |
| 2444 | <A |
| 2445 | HREF="gnome-xml-encoding.html#XMLCHARENCODING" |
| 2446 | >xmlCharEncoding</A |
| 2447 | > enc);</PRE |
| 2448 | ></TD |
| 2449 | ></TR |
| 2450 | ></TABLE |
| 2451 | ><P |
| 2452 | >Create a parser context for using the HTML parser in push mode |
| 2453 | To allow content encoding detection, <TT |
| 2454 | CLASS="PARAMETER" |
| 2455 | ><I |
| 2456 | >size</I |
| 2457 | ></TT |
| 2458 | > should be >= 4 |
| 2459 | The value of <TT |
| 2460 | CLASS="PARAMETER" |
| 2461 | ><I |
| 2462 | >filename</I |
| 2463 | ></TT |
| 2464 | > is used for fetching external entities |
| 2465 | and error/warning reports.</P |
| 2466 | ><P |
| 2467 | ></P |
| 2468 | ><DIV |
| 2469 | CLASS="INFORMALTABLE" |
| 2470 | ><P |
| 2471 | ></P |
| 2472 | ><TABLE |
| 2473 | BORDER="0" |
| 2474 | WIDTH="100%" |
| 2475 | BGCOLOR="#FFD0D0" |
| 2476 | CELLSPACING="0" |
| 2477 | CELLPADDING="4" |
| 2478 | CLASS="CALSTABLE" |
| 2479 | ><TR |
| 2480 | ><TD |
| 2481 | WIDTH="20%" |
| 2482 | ALIGN="RIGHT" |
| 2483 | VALIGN="TOP" |
| 2484 | ><TT |
| 2485 | CLASS="PARAMETER" |
| 2486 | ><I |
| 2487 | >sax</I |
| 2488 | ></TT |
| 2489 | > :</TD |
| 2490 | ><TD |
| 2491 | WIDTH="80%" |
| 2492 | ALIGN="LEFT" |
| 2493 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2494 | > a SAX handler</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2495 | ></TR |
| 2496 | ><TR |
| 2497 | ><TD |
| 2498 | WIDTH="20%" |
| 2499 | ALIGN="RIGHT" |
| 2500 | VALIGN="TOP" |
| 2501 | ><TT |
| 2502 | CLASS="PARAMETER" |
| 2503 | ><I |
| 2504 | >user_data</I |
| 2505 | ></TT |
| 2506 | > :</TD |
| 2507 | ><TD |
| 2508 | WIDTH="80%" |
| 2509 | ALIGN="LEFT" |
| 2510 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2511 | > The user data returned on SAX callbacks</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2512 | ></TR |
| 2513 | ><TR |
| 2514 | ><TD |
| 2515 | WIDTH="20%" |
| 2516 | ALIGN="RIGHT" |
| 2517 | VALIGN="TOP" |
| 2518 | ><TT |
| 2519 | CLASS="PARAMETER" |
| 2520 | ><I |
| 2521 | >chunk</I |
| 2522 | ></TT |
| 2523 | > :</TD |
| 2524 | ><TD |
| 2525 | WIDTH="80%" |
| 2526 | ALIGN="LEFT" |
| 2527 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2528 | > a pointer to an array of chars</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2529 | ></TR |
| 2530 | ><TR |
| 2531 | ><TD |
| 2532 | WIDTH="20%" |
| 2533 | ALIGN="RIGHT" |
| 2534 | VALIGN="TOP" |
| 2535 | ><TT |
| 2536 | CLASS="PARAMETER" |
| 2537 | ><I |
| 2538 | >size</I |
| 2539 | ></TT |
| 2540 | > :</TD |
| 2541 | ><TD |
| 2542 | WIDTH="80%" |
| 2543 | ALIGN="LEFT" |
| 2544 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2545 | > number of chars in the array</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2546 | ></TR |
| 2547 | ><TR |
| 2548 | ><TD |
| 2549 | WIDTH="20%" |
| 2550 | ALIGN="RIGHT" |
| 2551 | VALIGN="TOP" |
| 2552 | ><TT |
| 2553 | CLASS="PARAMETER" |
| 2554 | ><I |
| 2555 | >filename</I |
| 2556 | ></TT |
| 2557 | > :</TD |
| 2558 | ><TD |
| 2559 | WIDTH="80%" |
| 2560 | ALIGN="LEFT" |
| 2561 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2562 | > an optional file name or URI</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2563 | ></TR |
| 2564 | ><TR |
| 2565 | ><TD |
| 2566 | WIDTH="20%" |
| 2567 | ALIGN="RIGHT" |
| 2568 | VALIGN="TOP" |
| 2569 | ><TT |
| 2570 | CLASS="PARAMETER" |
| 2571 | ><I |
| 2572 | >enc</I |
| 2573 | ></TT |
| 2574 | > :</TD |
| 2575 | ><TD |
| 2576 | WIDTH="80%" |
| 2577 | ALIGN="LEFT" |
| 2578 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2579 | > an optional encoding</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2580 | ></TR |
| 2581 | ><TR |
| 2582 | ><TD |
| 2583 | WIDTH="20%" |
| 2584 | ALIGN="RIGHT" |
| 2585 | VALIGN="TOP" |
| 2586 | ><I |
| 2587 | CLASS="EMPHASIS" |
| 2588 | >Returns</I |
| 2589 | > :</TD |
| 2590 | ><TD |
| 2591 | WIDTH="80%" |
| 2592 | ALIGN="LEFT" |
| 2593 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2594 | >the new parser context or NULL</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2595 | ></TR |
| 2596 | ></TABLE |
| 2597 | ><P |
| 2598 | ></P |
| 2599 | ></DIV |
| 2600 | ></DIV |
| 2601 | ><HR><DIV |
| 2602 | CLASS="REFSECT2" |
| 2603 | ><A |
Daniel Veillard | a1fe910 | 2000-11-25 10:49:25 +0000 | [diff] [blame] | 2604 | NAME="AEN10227" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2605 | ></A |
| 2606 | ><H3 |
| 2607 | ><A |
| 2608 | NAME="HTMLPARSECHUNK" |
| 2609 | ></A |
| 2610 | >htmlParseChunk ()</H3 |
| 2611 | ><TABLE |
| 2612 | BORDER="0" |
| 2613 | BGCOLOR="#D6E8FF" |
| 2614 | WIDTH="100%" |
| 2615 | CELLPADDING="6" |
| 2616 | ><TR |
| 2617 | ><TD |
| 2618 | ><PRE |
| 2619 | CLASS="PROGRAMLISTING" |
| 2620 | >int htmlParseChunk (<A |
| 2621 | HREF="gnome-xml-htmlparser.html#HTMLPARSERCTXTPTR" |
| 2622 | >htmlParserCtxtPtr</A |
| 2623 | > ctxt, |
| 2624 | const char *chunk, |
| 2625 | int size, |
| 2626 | int terminate);</PRE |
| 2627 | ></TD |
| 2628 | ></TR |
| 2629 | ></TABLE |
| 2630 | ><P |
| 2631 | >Parse a Chunk of memory</P |
| 2632 | ><P |
| 2633 | ></P |
| 2634 | ><DIV |
| 2635 | CLASS="INFORMALTABLE" |
| 2636 | ><P |
| 2637 | ></P |
| 2638 | ><TABLE |
| 2639 | BORDER="0" |
| 2640 | WIDTH="100%" |
| 2641 | BGCOLOR="#FFD0D0" |
| 2642 | CELLSPACING="0" |
| 2643 | CELLPADDING="4" |
| 2644 | CLASS="CALSTABLE" |
| 2645 | ><TR |
| 2646 | ><TD |
| 2647 | WIDTH="20%" |
| 2648 | ALIGN="RIGHT" |
| 2649 | VALIGN="TOP" |
| 2650 | ><TT |
| 2651 | CLASS="PARAMETER" |
| 2652 | ><I |
| 2653 | >ctxt</I |
| 2654 | ></TT |
| 2655 | > :</TD |
| 2656 | ><TD |
| 2657 | WIDTH="80%" |
| 2658 | ALIGN="LEFT" |
| 2659 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2660 | > an XML parser context</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2661 | ></TR |
| 2662 | ><TR |
| 2663 | ><TD |
| 2664 | WIDTH="20%" |
| 2665 | ALIGN="RIGHT" |
| 2666 | VALIGN="TOP" |
| 2667 | ><TT |
| 2668 | CLASS="PARAMETER" |
| 2669 | ><I |
| 2670 | >chunk</I |
| 2671 | ></TT |
| 2672 | > :</TD |
| 2673 | ><TD |
| 2674 | WIDTH="80%" |
| 2675 | ALIGN="LEFT" |
| 2676 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2677 | > an char array</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2678 | ></TR |
| 2679 | ><TR |
| 2680 | ><TD |
| 2681 | WIDTH="20%" |
| 2682 | ALIGN="RIGHT" |
| 2683 | VALIGN="TOP" |
| 2684 | ><TT |
| 2685 | CLASS="PARAMETER" |
| 2686 | ><I |
| 2687 | >size</I |
| 2688 | ></TT |
| 2689 | > :</TD |
| 2690 | ><TD |
| 2691 | WIDTH="80%" |
| 2692 | ALIGN="LEFT" |
| 2693 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2694 | > the size in byte of the chunk</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2695 | ></TR |
| 2696 | ><TR |
| 2697 | ><TD |
| 2698 | WIDTH="20%" |
| 2699 | ALIGN="RIGHT" |
| 2700 | VALIGN="TOP" |
| 2701 | ><TT |
| 2702 | CLASS="PARAMETER" |
| 2703 | ><I |
| 2704 | >terminate</I |
| 2705 | ></TT |
| 2706 | > :</TD |
| 2707 | ><TD |
| 2708 | WIDTH="80%" |
| 2709 | ALIGN="LEFT" |
| 2710 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2711 | > last chunk indicator</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2712 | ></TR |
| 2713 | ><TR |
| 2714 | ><TD |
| 2715 | WIDTH="20%" |
| 2716 | ALIGN="RIGHT" |
| 2717 | VALIGN="TOP" |
| 2718 | ><I |
| 2719 | CLASS="EMPHASIS" |
| 2720 | >Returns</I |
| 2721 | > :</TD |
| 2722 | ><TD |
| 2723 | WIDTH="80%" |
| 2724 | ALIGN="LEFT" |
| 2725 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2726 | >zero if no error, the xmlParserErrors otherwise.</TD |
Daniel Veillard | 437b87b | 2000-01-03 17:30:46 +0000 | [diff] [blame] | 2727 | ></TR |
| 2728 | ></TABLE |
| 2729 | ><P |
| 2730 | ></P |
| 2731 | ></DIV |
| 2732 | ></DIV |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 2733 | ></DIV |
| 2734 | ><DIV |
| 2735 | CLASS="NAVFOOTER" |
Daniel Veillard | 00fdf37 | 1999-10-08 09:40:39 +0000 | [diff] [blame] | 2736 | ><BR |
| 2737 | CLEAR="all"><BR><TABLE |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 2738 | WIDTH="100%" |
| 2739 | BORDER="0" |
| 2740 | BGCOLOR="#000000" |
| 2741 | CELLPADDING="1" |
| 2742 | CELLSPACING="0" |
| 2743 | ><TR |
| 2744 | ><TD |
| 2745 | WIDTH="25%" |
| 2746 | BGCOLOR="#C00000" |
| 2747 | ALIGN="left" |
| 2748 | ><A |
Daniel Veillard | 6bd26dc | 1999-09-03 14:28:40 +0000 | [diff] [blame] | 2749 | HREF="gnome-xml-xml-error.html" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 2750 | ><FONT |
| 2751 | COLOR="#FFFFFF" |
| 2752 | SIZE="3" |
| 2753 | ><B |
| 2754 | ><<< Previous Page</B |
| 2755 | ></FONT |
| 2756 | ></A |
| 2757 | ></TD |
| 2758 | ><TD |
| 2759 | WIDTH="25%" |
| 2760 | BGCOLOR="#0000C0" |
| 2761 | ALIGN="center" |
| 2762 | ><FONT |
| 2763 | COLOR="#FFFFFF" |
| 2764 | SIZE="3" |
| 2765 | ><B |
| 2766 | ><A |
| 2767 | HREF="book1.html" |
| 2768 | ><FONT |
| 2769 | COLOR="#FFFFFF" |
| 2770 | SIZE="3" |
| 2771 | ><B |
| 2772 | >Home</B |
| 2773 | ></FONT |
| 2774 | ></A |
| 2775 | ></B |
| 2776 | ></FONT |
| 2777 | ></TD |
| 2778 | ><TD |
| 2779 | WIDTH="25%" |
| 2780 | BGCOLOR="#00C000" |
| 2781 | ALIGN="center" |
| 2782 | ><FONT |
| 2783 | COLOR="#FFFFFF" |
| 2784 | SIZE="3" |
| 2785 | ><B |
| 2786 | ><A |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 2787 | HREF="libxml-lib.html" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 2788 | ><FONT |
| 2789 | COLOR="#FFFFFF" |
| 2790 | SIZE="3" |
| 2791 | ><B |
| 2792 | >Up</B |
| 2793 | ></FONT |
| 2794 | ></A |
| 2795 | ></B |
| 2796 | ></FONT |
| 2797 | ></TD |
| 2798 | ><TD |
| 2799 | WIDTH="25%" |
| 2800 | BGCOLOR="#C00000" |
| 2801 | ALIGN="right" |
| 2802 | ><A |
| 2803 | HREF="gnome-xml-htmltree.html" |
| 2804 | ><FONT |
| 2805 | COLOR="#FFFFFF" |
| 2806 | SIZE="3" |
| 2807 | ><B |
| 2808 | >Next Page >>></B |
| 2809 | ></FONT |
| 2810 | ></A |
| 2811 | ></TD |
| 2812 | ></TR |
| 2813 | ><TR |
| 2814 | ><TD |
| 2815 | COLSPAN="2" |
| 2816 | ALIGN="left" |
| 2817 | ><FONT |
| 2818 | COLOR="#FFFFFF" |
| 2819 | SIZE="3" |
| 2820 | ><B |
Daniel Veillard | 6bd26dc | 1999-09-03 14:28:40 +0000 | [diff] [blame] | 2821 | >xml-error</B |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 2822 | ></FONT |
| 2823 | ></TD |
| 2824 | ><TD |
| 2825 | COLSPAN="2" |
| 2826 | ALIGN="right" |
| 2827 | ><FONT |
| 2828 | COLOR="#FFFFFF" |
| 2829 | SIZE="3" |
| 2830 | ><B |
| 2831 | >HTMLtree</B |
| 2832 | ></FONT |
| 2833 | ></TD |
| 2834 | ></TR |
| 2835 | ></TABLE |
| 2836 | ></DIV |
| 2837 | ></BODY |
| 2838 | ></HTML |
| 2839 | > |