Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1 | <HTML |
| 2 | ><HEAD |
| 3 | ><TITLE |
| 4 | >DOCBparser</TITLE |
| 5 | ><META |
| 6 | NAME="GENERATOR" |
Daniel Veillard | 60087f3 | 2001-10-10 09:45:09 +0000 | [diff] [blame] | 7 | CONTENT="Modular DocBook HTML Stylesheet Version 1.64 |
| 8 | "><LINK |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 9 | REL="HOME" |
| 10 | TITLE="Gnome XML Library Reference Manual" |
| 11 | HREF="book1.html"><LINK |
| 12 | REL="UP" |
| 13 | TITLE="Libxml Library Reference" |
| 14 | HREF="libxml-lib.html"><LINK |
| 15 | REL="PREVIOUS" |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 16 | TITLE="globals" |
| 17 | HREF="libxml-globals.html"><LINK |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 18 | REL="NEXT" |
| 19 | TITLE="parserInternals" |
| 20 | HREF="libxml-parserinternals.html"></HEAD |
| 21 | ><BODY |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 22 | CLASS="REFENTRY" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 23 | BGCOLOR="#FFFFFF" |
| 24 | TEXT="#000000" |
| 25 | LINK="#0000FF" |
| 26 | VLINK="#840084" |
| 27 | ALINK="#0000FF" |
| 28 | ><DIV |
| 29 | CLASS="NAVHEADER" |
| 30 | ><TABLE |
| 31 | WIDTH="100%" |
| 32 | BORDER="0" |
| 33 | BGCOLOR="#000000" |
| 34 | CELLPADDING="1" |
| 35 | CELLSPACING="0" |
| 36 | ><TR |
| 37 | ><TH |
| 38 | COLSPAN="4" |
| 39 | ALIGN="center" |
| 40 | ><FONT |
| 41 | COLOR="#FFFFFF" |
| 42 | SIZE="5" |
| 43 | >Gnome XML Library Reference Manual</FONT |
| 44 | ></TH |
| 45 | ></TR |
| 46 | ><TR |
| 47 | ><TD |
| 48 | WIDTH="25%" |
| 49 | BGCOLOR="#C00000" |
| 50 | ALIGN="left" |
| 51 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 52 | HREF="libxml-globals.html" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 53 | ><FONT |
| 54 | COLOR="#FFFFFF" |
| 55 | SIZE="3" |
| 56 | ><B |
| 57 | ><<< Previous Page</B |
| 58 | ></FONT |
| 59 | ></A |
| 60 | ></TD |
| 61 | ><TD |
| 62 | WIDTH="25%" |
| 63 | BGCOLOR="#0000C0" |
| 64 | ALIGN="center" |
| 65 | ><FONT |
| 66 | COLOR="#FFFFFF" |
| 67 | SIZE="3" |
| 68 | ><B |
| 69 | ><A |
| 70 | HREF="book1.html" |
| 71 | ><FONT |
| 72 | COLOR="#FFFFFF" |
| 73 | SIZE="3" |
| 74 | ><B |
| 75 | >Home</B |
| 76 | ></FONT |
| 77 | ></A |
| 78 | ></B |
| 79 | ></FONT |
| 80 | ></TD |
| 81 | ><TD |
| 82 | WIDTH="25%" |
| 83 | BGCOLOR="#00C000" |
| 84 | ALIGN="center" |
| 85 | ><FONT |
| 86 | COLOR="#FFFFFF" |
| 87 | SIZE="3" |
| 88 | ><B |
| 89 | ><A |
| 90 | HREF="libxml-lib.html" |
| 91 | ><FONT |
| 92 | COLOR="#FFFFFF" |
| 93 | SIZE="3" |
| 94 | ><B |
| 95 | >Up</B |
| 96 | ></FONT |
| 97 | ></A |
| 98 | ></B |
| 99 | ></FONT |
| 100 | ></TD |
| 101 | ><TD |
| 102 | WIDTH="25%" |
| 103 | BGCOLOR="#C00000" |
| 104 | ALIGN="right" |
| 105 | ><A |
| 106 | HREF="libxml-parserinternals.html" |
| 107 | ><FONT |
| 108 | COLOR="#FFFFFF" |
| 109 | SIZE="3" |
| 110 | ><B |
| 111 | >Next Page >>></B |
| 112 | ></FONT |
| 113 | ></A |
| 114 | ></TD |
| 115 | ></TR |
| 116 | ></TABLE |
| 117 | ></DIV |
| 118 | ><H1 |
| 119 | ><A |
| 120 | NAME="LIBXML-DOCBPARSER" |
| 121 | >DOCBparser</A |
| 122 | ></H1 |
| 123 | ><DIV |
| 124 | CLASS="REFNAMEDIV" |
| 125 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 126 | NAME="AEN20408" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 127 | ></A |
| 128 | ><H2 |
| 129 | >Name</H2 |
| 130 | >DOCBparser -- </DIV |
| 131 | ><DIV |
| 132 | CLASS="REFSYNOPSISDIV" |
| 133 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 134 | NAME="AEN20411" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 135 | ></A |
| 136 | ><H2 |
| 137 | >Synopsis</H2 |
| 138 | ><TABLE |
| 139 | BORDER="0" |
| 140 | BGCOLOR="#D6E8FF" |
| 141 | WIDTH="100%" |
| 142 | CELLPADDING="6" |
| 143 | ><TR |
| 144 | ><TD |
| 145 | ><PRE |
| 146 | CLASS="SYNOPSIS" |
| 147 | > |
| 148 | |
| 149 | typedef <A |
| 150 | HREF="libxml-docbparser.html#DOCBPARSERCTXT" |
| 151 | >docbParserCtxt</A |
| 152 | >; |
| 153 | typedef <A |
| 154 | HREF="libxml-docbparser.html#DOCBPARSERCTXTPTR" |
| 155 | >docbParserCtxtPtr</A |
| 156 | >; |
| 157 | typedef <A |
| 158 | HREF="libxml-docbparser.html#DOCBPARSERNODEINFO" |
| 159 | >docbParserNodeInfo</A |
| 160 | >; |
| 161 | typedef <A |
| 162 | HREF="libxml-docbparser.html#DOCBSAXHANDLER" |
| 163 | >docbSAXHandler</A |
| 164 | >; |
| 165 | typedef <A |
| 166 | HREF="libxml-docbparser.html#DOCBSAXHANDLERPTR" |
| 167 | >docbSAXHandlerPtr</A |
| 168 | >; |
| 169 | typedef <A |
| 170 | HREF="libxml-docbparser.html#DOCBPARSERINPUT" |
| 171 | >docbParserInput</A |
| 172 | >; |
| 173 | typedef <A |
| 174 | HREF="libxml-docbparser.html#DOCBPARSERINPUTPTR" |
| 175 | >docbParserInputPtr</A |
| 176 | >; |
| 177 | typedef <A |
| 178 | HREF="libxml-docbparser.html#DOCBDOCPTR" |
| 179 | >docbDocPtr</A |
| 180 | >; |
| 181 | typedef <A |
| 182 | HREF="libxml-docbparser.html#DOCBNODEPTR" |
| 183 | >docbNodePtr</A |
| 184 | >; |
| 185 | int <A |
| 186 | HREF="libxml-docbparser.html#DOCBENCODEENTITIES" |
| 187 | >docbEncodeEntities</A |
| 188 | > (unsigned char *out, |
| 189 | int *outlen, |
| 190 | unsigned char *in, |
| 191 | int *inlen, |
| 192 | int quoteChar); |
| 193 | <A |
| 194 | HREF="libxml-docbparser.html#DOCBDOCPTR" |
| 195 | >docbDocPtr</A |
| 196 | > <A |
| 197 | HREF="libxml-docbparser.html#DOCBSAXPARSEDOC" |
| 198 | >docbSAXParseDoc</A |
| 199 | > (<A |
| 200 | HREF="libxml-tree.html#XMLCHAR" |
| 201 | >xmlChar</A |
| 202 | > *cur, |
| 203 | const char *encoding, |
| 204 | <A |
| 205 | HREF="libxml-docbparser.html#DOCBSAXHANDLERPTR" |
| 206 | >docbSAXHandlerPtr</A |
| 207 | > sax, |
| 208 | void *userData); |
| 209 | <A |
| 210 | HREF="libxml-docbparser.html#DOCBDOCPTR" |
| 211 | >docbDocPtr</A |
| 212 | > <A |
| 213 | HREF="libxml-docbparser.html#DOCBPARSEDOC" |
| 214 | >docbParseDoc</A |
| 215 | > (<A |
| 216 | HREF="libxml-tree.html#XMLCHAR" |
| 217 | >xmlChar</A |
| 218 | > *cur, |
| 219 | const char *encoding); |
| 220 | <A |
| 221 | HREF="libxml-docbparser.html#DOCBDOCPTR" |
| 222 | >docbDocPtr</A |
| 223 | > <A |
| 224 | HREF="libxml-docbparser.html#DOCBSAXPARSEFILE" |
| 225 | >docbSAXParseFile</A |
| 226 | > (const char *filename, |
| 227 | const char *encoding, |
| 228 | <A |
| 229 | HREF="libxml-docbparser.html#DOCBSAXHANDLERPTR" |
| 230 | >docbSAXHandlerPtr</A |
| 231 | > sax, |
| 232 | void *userData); |
| 233 | <A |
| 234 | HREF="libxml-docbparser.html#DOCBDOCPTR" |
| 235 | >docbDocPtr</A |
| 236 | > <A |
| 237 | HREF="libxml-docbparser.html#DOCBPARSEFILE" |
| 238 | >docbParseFile</A |
| 239 | > (const char *filename, |
| 240 | const char *encoding); |
| 241 | void <A |
| 242 | HREF="libxml-docbparser.html#DOCBFREEPARSERCTXT" |
| 243 | >docbFreeParserCtxt</A |
| 244 | > (<A |
| 245 | HREF="libxml-docbparser.html#DOCBPARSERCTXTPTR" |
| 246 | >docbParserCtxtPtr</A |
| 247 | > ctxt); |
| 248 | <A |
| 249 | HREF="libxml-docbparser.html#DOCBPARSERCTXTPTR" |
| 250 | >docbParserCtxtPtr</A |
| 251 | > <A |
| 252 | HREF="libxml-docbparser.html#DOCBCREATEPUSHPARSERCTXT" |
| 253 | >docbCreatePushParserCtxt</A |
| 254 | > (<A |
| 255 | HREF="libxml-docbparser.html#DOCBSAXHANDLERPTR" |
| 256 | >docbSAXHandlerPtr</A |
| 257 | > sax, |
| 258 | void *user_data, |
| 259 | const char *chunk, |
| 260 | int size, |
| 261 | const char *filename, |
| 262 | <A |
| 263 | HREF="libxml-encoding.html#XMLCHARENCODING" |
| 264 | >xmlCharEncoding</A |
| 265 | > enc); |
| 266 | int <A |
| 267 | HREF="libxml-docbparser.html#DOCBPARSECHUNK" |
| 268 | >docbParseChunk</A |
| 269 | > (<A |
| 270 | HREF="libxml-docbparser.html#DOCBPARSERCTXTPTR" |
| 271 | >docbParserCtxtPtr</A |
| 272 | > ctxt, |
| 273 | const char *chunk, |
| 274 | int size, |
| 275 | int terminate); |
| 276 | <A |
| 277 | HREF="libxml-docbparser.html#DOCBPARSERCTXTPTR" |
| 278 | >docbParserCtxtPtr</A |
| 279 | > <A |
| 280 | HREF="libxml-docbparser.html#DOCBCREATEFILEPARSERCTXT" |
| 281 | >docbCreateFileParserCtxt</A |
| 282 | > (const char *filename, |
| 283 | const char *encoding); |
| 284 | int <A |
| 285 | HREF="libxml-docbparser.html#DOCBPARSEDOCUMENT" |
| 286 | >docbParseDocument</A |
| 287 | > (<A |
| 288 | HREF="libxml-docbparser.html#DOCBPARSERCTXTPTR" |
| 289 | >docbParserCtxtPtr</A |
| 290 | > ctxt);</PRE |
| 291 | ></TD |
| 292 | ></TR |
| 293 | ></TABLE |
| 294 | ></DIV |
| 295 | ><DIV |
| 296 | CLASS="REFSECT1" |
| 297 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 298 | NAME="AEN20448" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 299 | ></A |
| 300 | ><H2 |
| 301 | >Description</H2 |
| 302 | ><P |
| 303 | ></P |
| 304 | ></DIV |
| 305 | ><DIV |
| 306 | CLASS="REFSECT1" |
| 307 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 308 | NAME="AEN20451" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 309 | ></A |
| 310 | ><H2 |
| 311 | >Details</H2 |
| 312 | ><DIV |
| 313 | CLASS="REFSECT2" |
| 314 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 315 | NAME="AEN20453" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 316 | ></A |
| 317 | ><H3 |
| 318 | ><A |
| 319 | NAME="DOCBPARSERCTXT" |
| 320 | ></A |
| 321 | >docbParserCtxt</H3 |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 322 | ><TABLE |
| 323 | BORDER="0" |
| 324 | BGCOLOR="#D6E8FF" |
| 325 | WIDTH="100%" |
| 326 | CELLPADDING="6" |
| 327 | ><TR |
| 328 | ><TD |
| 329 | ><PRE |
| 330 | CLASS="PROGRAMLISTING" |
| 331 | >typedef xmlParserCtxt docbParserCtxt;</PRE |
| 332 | ></TD |
| 333 | ></TR |
| 334 | ></TABLE |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 335 | ><P |
| 336 | ></P |
| 337 | ></DIV |
| 338 | ><HR><DIV |
| 339 | CLASS="REFSECT2" |
| 340 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 341 | NAME="AEN20458" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 342 | ></A |
| 343 | ><H3 |
| 344 | ><A |
| 345 | NAME="DOCBPARSERCTXTPTR" |
| 346 | ></A |
| 347 | >docbParserCtxtPtr</H3 |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 348 | ><TABLE |
| 349 | BORDER="0" |
| 350 | BGCOLOR="#D6E8FF" |
| 351 | WIDTH="100%" |
| 352 | CELLPADDING="6" |
| 353 | ><TR |
| 354 | ><TD |
| 355 | ><PRE |
| 356 | CLASS="PROGRAMLISTING" |
| 357 | >typedef xmlParserCtxtPtr docbParserCtxtPtr;</PRE |
| 358 | ></TD |
| 359 | ></TR |
| 360 | ></TABLE |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 361 | ><P |
| 362 | ></P |
| 363 | ></DIV |
| 364 | ><HR><DIV |
| 365 | CLASS="REFSECT2" |
| 366 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 367 | NAME="AEN20463" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 368 | ></A |
| 369 | ><H3 |
| 370 | ><A |
| 371 | NAME="DOCBPARSERNODEINFO" |
| 372 | ></A |
| 373 | >docbParserNodeInfo</H3 |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 374 | ><TABLE |
| 375 | BORDER="0" |
| 376 | BGCOLOR="#D6E8FF" |
| 377 | WIDTH="100%" |
| 378 | CELLPADDING="6" |
| 379 | ><TR |
| 380 | ><TD |
| 381 | ><PRE |
| 382 | CLASS="PROGRAMLISTING" |
| 383 | >typedef xmlParserNodeInfo docbParserNodeInfo;</PRE |
| 384 | ></TD |
| 385 | ></TR |
| 386 | ></TABLE |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 387 | ><P |
| 388 | ></P |
| 389 | ></DIV |
| 390 | ><HR><DIV |
| 391 | CLASS="REFSECT2" |
| 392 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 393 | NAME="AEN20468" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 394 | ></A |
| 395 | ><H3 |
| 396 | ><A |
| 397 | NAME="DOCBSAXHANDLER" |
| 398 | ></A |
| 399 | >docbSAXHandler</H3 |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 400 | ><TABLE |
| 401 | BORDER="0" |
| 402 | BGCOLOR="#D6E8FF" |
| 403 | WIDTH="100%" |
| 404 | CELLPADDING="6" |
| 405 | ><TR |
| 406 | ><TD |
| 407 | ><PRE |
| 408 | CLASS="PROGRAMLISTING" |
| 409 | >typedef xmlSAXHandler docbSAXHandler;</PRE |
| 410 | ></TD |
| 411 | ></TR |
| 412 | ></TABLE |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 413 | ><P |
| 414 | ></P |
| 415 | ></DIV |
| 416 | ><HR><DIV |
| 417 | CLASS="REFSECT2" |
| 418 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 419 | NAME="AEN20473" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 420 | ></A |
| 421 | ><H3 |
| 422 | ><A |
| 423 | NAME="DOCBSAXHANDLERPTR" |
| 424 | ></A |
| 425 | >docbSAXHandlerPtr</H3 |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 426 | ><TABLE |
| 427 | BORDER="0" |
| 428 | BGCOLOR="#D6E8FF" |
| 429 | WIDTH="100%" |
| 430 | CELLPADDING="6" |
| 431 | ><TR |
| 432 | ><TD |
| 433 | ><PRE |
| 434 | CLASS="PROGRAMLISTING" |
| 435 | >typedef xmlSAXHandlerPtr docbSAXHandlerPtr;</PRE |
| 436 | ></TD |
| 437 | ></TR |
| 438 | ></TABLE |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 439 | ><P |
| 440 | ></P |
| 441 | ></DIV |
| 442 | ><HR><DIV |
| 443 | CLASS="REFSECT2" |
| 444 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 445 | NAME="AEN20478" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 446 | ></A |
| 447 | ><H3 |
| 448 | ><A |
| 449 | NAME="DOCBPARSERINPUT" |
| 450 | ></A |
| 451 | >docbParserInput</H3 |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 452 | ><TABLE |
| 453 | BORDER="0" |
| 454 | BGCOLOR="#D6E8FF" |
| 455 | WIDTH="100%" |
| 456 | CELLPADDING="6" |
| 457 | ><TR |
| 458 | ><TD |
| 459 | ><PRE |
| 460 | CLASS="PROGRAMLISTING" |
| 461 | >typedef xmlParserInput docbParserInput;</PRE |
| 462 | ></TD |
| 463 | ></TR |
| 464 | ></TABLE |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 465 | ><P |
| 466 | ></P |
| 467 | ></DIV |
| 468 | ><HR><DIV |
| 469 | CLASS="REFSECT2" |
| 470 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 471 | NAME="AEN20483" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 472 | ></A |
| 473 | ><H3 |
| 474 | ><A |
| 475 | NAME="DOCBPARSERINPUTPTR" |
| 476 | ></A |
| 477 | >docbParserInputPtr</H3 |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 478 | ><TABLE |
| 479 | BORDER="0" |
| 480 | BGCOLOR="#D6E8FF" |
| 481 | WIDTH="100%" |
| 482 | CELLPADDING="6" |
| 483 | ><TR |
| 484 | ><TD |
| 485 | ><PRE |
| 486 | CLASS="PROGRAMLISTING" |
| 487 | >typedef xmlParserInputPtr docbParserInputPtr;</PRE |
| 488 | ></TD |
| 489 | ></TR |
| 490 | ></TABLE |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 491 | ><P |
| 492 | ></P |
| 493 | ></DIV |
| 494 | ><HR><DIV |
| 495 | CLASS="REFSECT2" |
| 496 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 497 | NAME="AEN20488" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 498 | ></A |
| 499 | ><H3 |
| 500 | ><A |
| 501 | NAME="DOCBDOCPTR" |
| 502 | ></A |
| 503 | >docbDocPtr</H3 |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 504 | ><TABLE |
| 505 | BORDER="0" |
| 506 | BGCOLOR="#D6E8FF" |
| 507 | WIDTH="100%" |
| 508 | CELLPADDING="6" |
| 509 | ><TR |
| 510 | ><TD |
| 511 | ><PRE |
| 512 | CLASS="PROGRAMLISTING" |
| 513 | >typedef xmlDocPtr docbDocPtr;</PRE |
| 514 | ></TD |
| 515 | ></TR |
| 516 | ></TABLE |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 517 | ><P |
| 518 | ></P |
| 519 | ></DIV |
| 520 | ><HR><DIV |
| 521 | CLASS="REFSECT2" |
| 522 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 523 | NAME="AEN20493" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 524 | ></A |
| 525 | ><H3 |
| 526 | ><A |
| 527 | NAME="DOCBNODEPTR" |
| 528 | ></A |
| 529 | >docbNodePtr</H3 |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 530 | ><TABLE |
| 531 | BORDER="0" |
| 532 | BGCOLOR="#D6E8FF" |
| 533 | WIDTH="100%" |
| 534 | CELLPADDING="6" |
| 535 | ><TR |
| 536 | ><TD |
| 537 | ><PRE |
| 538 | CLASS="PROGRAMLISTING" |
| 539 | >typedef xmlNodePtr docbNodePtr;</PRE |
| 540 | ></TD |
| 541 | ></TR |
| 542 | ></TABLE |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 543 | ><P |
| 544 | ></P |
| 545 | ></DIV |
| 546 | ><HR><DIV |
| 547 | CLASS="REFSECT2" |
| 548 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 549 | NAME="AEN20498" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 550 | ></A |
| 551 | ><H3 |
| 552 | ><A |
| 553 | NAME="DOCBENCODEENTITIES" |
| 554 | ></A |
| 555 | >docbEncodeEntities ()</H3 |
| 556 | ><TABLE |
| 557 | BORDER="0" |
| 558 | BGCOLOR="#D6E8FF" |
| 559 | WIDTH="100%" |
| 560 | CELLPADDING="6" |
| 561 | ><TR |
| 562 | ><TD |
| 563 | ><PRE |
| 564 | CLASS="PROGRAMLISTING" |
| 565 | >int docbEncodeEntities (unsigned char *out, |
| 566 | int *outlen, |
| 567 | unsigned char *in, |
| 568 | int *inlen, |
| 569 | int quoteChar);</PRE |
| 570 | ></TD |
| 571 | ></TR |
| 572 | ></TABLE |
| 573 | ><P |
| 574 | >Take a block of UTF-8 chars in and try to convert it to an ASCII |
| 575 | plus SGML entities block of chars out.</P |
| 576 | ><P |
| 577 | ></P |
| 578 | ><DIV |
| 579 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 580 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 581 | NAME="AEN20504" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 582 | ></A |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 583 | ><P |
| 584 | ></P |
| 585 | ><TABLE |
| 586 | BORDER="0" |
| 587 | WIDTH="100%" |
| 588 | BGCOLOR="#FFD0D0" |
| 589 | CELLSPACING="0" |
| 590 | CELLPADDING="4" |
| 591 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 592 | ><TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 593 | ><TR |
| 594 | ><TD |
| 595 | WIDTH="20%" |
| 596 | ALIGN="RIGHT" |
| 597 | VALIGN="TOP" |
| 598 | ><TT |
| 599 | CLASS="PARAMETER" |
| 600 | ><I |
| 601 | >out</I |
| 602 | ></TT |
| 603 | > :</TD |
| 604 | ><TD |
| 605 | WIDTH="80%" |
| 606 | ALIGN="LEFT" |
| 607 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 608 | > a pointer to an array of bytes to store the result</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 609 | ></TR |
| 610 | ><TR |
| 611 | ><TD |
| 612 | WIDTH="20%" |
| 613 | ALIGN="RIGHT" |
| 614 | VALIGN="TOP" |
| 615 | ><TT |
| 616 | CLASS="PARAMETER" |
| 617 | ><I |
| 618 | >outlen</I |
| 619 | ></TT |
| 620 | > :</TD |
| 621 | ><TD |
| 622 | WIDTH="80%" |
| 623 | ALIGN="LEFT" |
| 624 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 625 | > the length of <TT |
| 626 | CLASS="PARAMETER" |
| 627 | ><I |
| 628 | >out</I |
| 629 | ></TT |
| 630 | ></TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 631 | ></TR |
| 632 | ><TR |
| 633 | ><TD |
| 634 | WIDTH="20%" |
| 635 | ALIGN="RIGHT" |
| 636 | VALIGN="TOP" |
| 637 | ><TT |
| 638 | CLASS="PARAMETER" |
| 639 | ><I |
| 640 | >in</I |
| 641 | ></TT |
| 642 | > :</TD |
| 643 | ><TD |
| 644 | WIDTH="80%" |
| 645 | ALIGN="LEFT" |
| 646 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 647 | > a pointer to an array of UTF-8 chars</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 648 | ></TR |
| 649 | ><TR |
| 650 | ><TD |
| 651 | WIDTH="20%" |
| 652 | ALIGN="RIGHT" |
| 653 | VALIGN="TOP" |
| 654 | ><TT |
| 655 | CLASS="PARAMETER" |
| 656 | ><I |
| 657 | >inlen</I |
| 658 | ></TT |
| 659 | > :</TD |
| 660 | ><TD |
| 661 | WIDTH="80%" |
| 662 | ALIGN="LEFT" |
| 663 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 664 | > the length of <TT |
| 665 | CLASS="PARAMETER" |
| 666 | ><I |
| 667 | >in</I |
| 668 | ></TT |
| 669 | ></TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 670 | ></TR |
| 671 | ><TR |
| 672 | ><TD |
| 673 | WIDTH="20%" |
| 674 | ALIGN="RIGHT" |
| 675 | VALIGN="TOP" |
| 676 | ><TT |
| 677 | CLASS="PARAMETER" |
| 678 | ><I |
| 679 | >quoteChar</I |
| 680 | ></TT |
| 681 | > :</TD |
| 682 | ><TD |
| 683 | WIDTH="80%" |
| 684 | ALIGN="LEFT" |
| 685 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 686 | > the quote character to escape (' or ") or zero.</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 687 | ></TR |
| 688 | ><TR |
| 689 | ><TD |
| 690 | WIDTH="20%" |
| 691 | ALIGN="RIGHT" |
| 692 | VALIGN="TOP" |
| 693 | ><I |
| 694 | CLASS="EMPHASIS" |
| 695 | >Returns</I |
| 696 | > :</TD |
| 697 | ><TD |
| 698 | WIDTH="80%" |
| 699 | ALIGN="LEFT" |
| 700 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 701 | >0 if success, -2 if the transcoding fails, or -1 otherwise |
| 702 | The value of <TT |
| 703 | CLASS="PARAMETER" |
| 704 | ><I |
| 705 | >inlen</I |
| 706 | ></TT |
| 707 | > after return is the number of octets consumed |
| 708 | as the return value is positive, else unpredictiable. |
| 709 | The value of <TT |
| 710 | CLASS="PARAMETER" |
| 711 | ><I |
| 712 | >outlen</I |
| 713 | ></TT |
| 714 | > after return is the number of octets consumed.</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 715 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 716 | ></TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 717 | ></TABLE |
| 718 | ><P |
| 719 | ></P |
| 720 | ></DIV |
| 721 | ></DIV |
| 722 | ><HR><DIV |
| 723 | CLASS="REFSECT2" |
| 724 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 725 | NAME="AEN20537" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 726 | ></A |
| 727 | ><H3 |
| 728 | ><A |
| 729 | NAME="DOCBSAXPARSEDOC" |
| 730 | ></A |
| 731 | >docbSAXParseDoc ()</H3 |
| 732 | ><TABLE |
| 733 | BORDER="0" |
| 734 | BGCOLOR="#D6E8FF" |
| 735 | WIDTH="100%" |
| 736 | CELLPADDING="6" |
| 737 | ><TR |
| 738 | ><TD |
| 739 | ><PRE |
| 740 | CLASS="PROGRAMLISTING" |
| 741 | ><A |
| 742 | HREF="libxml-docbparser.html#DOCBDOCPTR" |
| 743 | >docbDocPtr</A |
| 744 | > docbSAXParseDoc (<A |
| 745 | HREF="libxml-tree.html#XMLCHAR" |
| 746 | >xmlChar</A |
| 747 | > *cur, |
| 748 | const char *encoding, |
| 749 | <A |
| 750 | HREF="libxml-docbparser.html#DOCBSAXHANDLERPTR" |
| 751 | >docbSAXHandlerPtr</A |
| 752 | > sax, |
| 753 | void *userData);</PRE |
| 754 | ></TD |
| 755 | ></TR |
| 756 | ></TABLE |
| 757 | ><P |
| 758 | >parse an SGML in-memory document and build a tree. |
| 759 | It use the given SAX function block to handle the parsing callback. |
| 760 | If sax is NULL, fallback to the default DOM tree building routines.</P |
| 761 | ><P |
| 762 | ></P |
| 763 | ><DIV |
| 764 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 765 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 766 | NAME="AEN20546" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 767 | ></A |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 768 | ><P |
| 769 | ></P |
| 770 | ><TABLE |
| 771 | BORDER="0" |
| 772 | WIDTH="100%" |
| 773 | BGCOLOR="#FFD0D0" |
| 774 | CELLSPACING="0" |
| 775 | CELLPADDING="4" |
| 776 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 777 | ><TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 778 | ><TR |
| 779 | ><TD |
| 780 | WIDTH="20%" |
| 781 | ALIGN="RIGHT" |
| 782 | VALIGN="TOP" |
| 783 | ><TT |
| 784 | CLASS="PARAMETER" |
| 785 | ><I |
| 786 | >cur</I |
| 787 | ></TT |
| 788 | > :</TD |
| 789 | ><TD |
| 790 | WIDTH="80%" |
| 791 | ALIGN="LEFT" |
| 792 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 793 | > a pointer to an array of xmlChar</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 794 | ></TR |
| 795 | ><TR |
| 796 | ><TD |
| 797 | WIDTH="20%" |
| 798 | ALIGN="RIGHT" |
| 799 | VALIGN="TOP" |
| 800 | ><TT |
| 801 | CLASS="PARAMETER" |
| 802 | ><I |
| 803 | >encoding</I |
| 804 | ></TT |
| 805 | > :</TD |
| 806 | ><TD |
| 807 | WIDTH="80%" |
| 808 | ALIGN="LEFT" |
| 809 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 810 | > a free form C string describing the SGML document encoding, or NULL</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 811 | ></TR |
| 812 | ><TR |
| 813 | ><TD |
| 814 | WIDTH="20%" |
| 815 | ALIGN="RIGHT" |
| 816 | VALIGN="TOP" |
| 817 | ><TT |
| 818 | CLASS="PARAMETER" |
| 819 | ><I |
| 820 | >sax</I |
| 821 | ></TT |
| 822 | > :</TD |
| 823 | ><TD |
| 824 | WIDTH="80%" |
| 825 | ALIGN="LEFT" |
| 826 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 827 | > the SAX handler block</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 828 | ></TR |
| 829 | ><TR |
| 830 | ><TD |
| 831 | WIDTH="20%" |
| 832 | ALIGN="RIGHT" |
| 833 | VALIGN="TOP" |
| 834 | ><TT |
| 835 | CLASS="PARAMETER" |
| 836 | ><I |
| 837 | >userData</I |
| 838 | ></TT |
| 839 | > :</TD |
| 840 | ><TD |
| 841 | WIDTH="80%" |
| 842 | ALIGN="LEFT" |
| 843 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 844 | > if using SAX, this pointer will be provided on callbacks. </TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 845 | ></TR |
| 846 | ><TR |
| 847 | ><TD |
| 848 | WIDTH="20%" |
| 849 | ALIGN="RIGHT" |
| 850 | VALIGN="TOP" |
| 851 | ><I |
| 852 | CLASS="EMPHASIS" |
| 853 | >Returns</I |
| 854 | > :</TD |
| 855 | ><TD |
| 856 | WIDTH="80%" |
| 857 | ALIGN="LEFT" |
| 858 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 859 | >the resulting document tree</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 860 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 861 | ></TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 862 | ></TABLE |
| 863 | ><P |
| 864 | ></P |
| 865 | ></DIV |
| 866 | ></DIV |
| 867 | ><HR><DIV |
| 868 | CLASS="REFSECT2" |
| 869 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 870 | NAME="AEN20571" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 871 | ></A |
| 872 | ><H3 |
| 873 | ><A |
| 874 | NAME="DOCBPARSEDOC" |
| 875 | ></A |
| 876 | >docbParseDoc ()</H3 |
| 877 | ><TABLE |
| 878 | BORDER="0" |
| 879 | BGCOLOR="#D6E8FF" |
| 880 | WIDTH="100%" |
| 881 | CELLPADDING="6" |
| 882 | ><TR |
| 883 | ><TD |
| 884 | ><PRE |
| 885 | CLASS="PROGRAMLISTING" |
| 886 | ><A |
| 887 | HREF="libxml-docbparser.html#DOCBDOCPTR" |
| 888 | >docbDocPtr</A |
| 889 | > docbParseDoc (<A |
| 890 | HREF="libxml-tree.html#XMLCHAR" |
| 891 | >xmlChar</A |
| 892 | > *cur, |
| 893 | const char *encoding);</PRE |
| 894 | ></TD |
| 895 | ></TR |
| 896 | ></TABLE |
| 897 | ><P |
| 898 | >parse an SGML in-memory document and build a tree.</P |
| 899 | ><P |
| 900 | ></P |
| 901 | ><DIV |
| 902 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 903 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 904 | NAME="AEN20579" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 905 | ></A |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 906 | ><P |
| 907 | ></P |
| 908 | ><TABLE |
| 909 | BORDER="0" |
| 910 | WIDTH="100%" |
| 911 | BGCOLOR="#FFD0D0" |
| 912 | CELLSPACING="0" |
| 913 | CELLPADDING="4" |
| 914 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 915 | ><TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 916 | ><TR |
| 917 | ><TD |
| 918 | WIDTH="20%" |
| 919 | ALIGN="RIGHT" |
| 920 | VALIGN="TOP" |
| 921 | ><TT |
| 922 | CLASS="PARAMETER" |
| 923 | ><I |
| 924 | >cur</I |
| 925 | ></TT |
| 926 | > :</TD |
| 927 | ><TD |
| 928 | WIDTH="80%" |
| 929 | ALIGN="LEFT" |
| 930 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 931 | > a pointer to an array of xmlChar</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 932 | ></TR |
| 933 | ><TR |
| 934 | ><TD |
| 935 | WIDTH="20%" |
| 936 | ALIGN="RIGHT" |
| 937 | VALIGN="TOP" |
| 938 | ><TT |
| 939 | CLASS="PARAMETER" |
| 940 | ><I |
| 941 | >encoding</I |
| 942 | ></TT |
| 943 | > :</TD |
| 944 | ><TD |
| 945 | WIDTH="80%" |
| 946 | ALIGN="LEFT" |
| 947 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 948 | > a free form C string describing the SGML document encoding, or NULL</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 949 | ></TR |
| 950 | ><TR |
| 951 | ><TD |
| 952 | WIDTH="20%" |
| 953 | ALIGN="RIGHT" |
| 954 | VALIGN="TOP" |
| 955 | ><I |
| 956 | CLASS="EMPHASIS" |
| 957 | >Returns</I |
| 958 | > :</TD |
| 959 | ><TD |
| 960 | WIDTH="80%" |
| 961 | ALIGN="LEFT" |
| 962 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 963 | >the resulting document tree</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 964 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 965 | ></TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 966 | ></TABLE |
| 967 | ><P |
| 968 | ></P |
| 969 | ></DIV |
| 970 | ></DIV |
| 971 | ><HR><DIV |
| 972 | CLASS="REFSECT2" |
| 973 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 974 | NAME="AEN20596" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 975 | ></A |
| 976 | ><H3 |
| 977 | ><A |
| 978 | NAME="DOCBSAXPARSEFILE" |
| 979 | ></A |
| 980 | >docbSAXParseFile ()</H3 |
| 981 | ><TABLE |
| 982 | BORDER="0" |
| 983 | BGCOLOR="#D6E8FF" |
| 984 | WIDTH="100%" |
| 985 | CELLPADDING="6" |
| 986 | ><TR |
| 987 | ><TD |
| 988 | ><PRE |
| 989 | CLASS="PROGRAMLISTING" |
| 990 | ><A |
| 991 | HREF="libxml-docbparser.html#DOCBDOCPTR" |
| 992 | >docbDocPtr</A |
| 993 | > docbSAXParseFile (const char *filename, |
| 994 | const char *encoding, |
| 995 | <A |
| 996 | HREF="libxml-docbparser.html#DOCBSAXHANDLERPTR" |
| 997 | >docbSAXHandlerPtr</A |
| 998 | > sax, |
| 999 | void *userData);</PRE |
| 1000 | ></TD |
| 1001 | ></TR |
| 1002 | ></TABLE |
| 1003 | ><P |
| 1004 | >parse an SGML file and build a tree. Automatic support for ZLIB/Compress |
| 1005 | compressed document is provided by default if found at compile-time. |
| 1006 | It use the given SAX function block to handle the parsing callback. |
| 1007 | If sax is NULL, fallback to the default DOM tree building routines.</P |
| 1008 | ><P |
| 1009 | ></P |
| 1010 | ><DIV |
| 1011 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1012 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 1013 | NAME="AEN20604" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1014 | ></A |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1015 | ><P |
| 1016 | ></P |
| 1017 | ><TABLE |
| 1018 | BORDER="0" |
| 1019 | WIDTH="100%" |
| 1020 | BGCOLOR="#FFD0D0" |
| 1021 | CELLSPACING="0" |
| 1022 | CELLPADDING="4" |
| 1023 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1024 | ><TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1025 | ><TR |
| 1026 | ><TD |
| 1027 | WIDTH="20%" |
| 1028 | ALIGN="RIGHT" |
| 1029 | VALIGN="TOP" |
| 1030 | ><TT |
| 1031 | CLASS="PARAMETER" |
| 1032 | ><I |
| 1033 | >filename</I |
| 1034 | ></TT |
| 1035 | > :</TD |
| 1036 | ><TD |
| 1037 | WIDTH="80%" |
| 1038 | ALIGN="LEFT" |
| 1039 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1040 | > the filename</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1041 | ></TR |
| 1042 | ><TR |
| 1043 | ><TD |
| 1044 | WIDTH="20%" |
| 1045 | ALIGN="RIGHT" |
| 1046 | VALIGN="TOP" |
| 1047 | ><TT |
| 1048 | CLASS="PARAMETER" |
| 1049 | ><I |
| 1050 | >encoding</I |
| 1051 | ></TT |
| 1052 | > :</TD |
| 1053 | ><TD |
| 1054 | WIDTH="80%" |
| 1055 | ALIGN="LEFT" |
| 1056 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1057 | > a free form C string describing the SGML document encoding, or NULL</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1058 | ></TR |
| 1059 | ><TR |
| 1060 | ><TD |
| 1061 | WIDTH="20%" |
| 1062 | ALIGN="RIGHT" |
| 1063 | VALIGN="TOP" |
| 1064 | ><TT |
| 1065 | CLASS="PARAMETER" |
| 1066 | ><I |
| 1067 | >sax</I |
| 1068 | ></TT |
| 1069 | > :</TD |
| 1070 | ><TD |
| 1071 | WIDTH="80%" |
| 1072 | ALIGN="LEFT" |
| 1073 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1074 | > the SAX handler block</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1075 | ></TR |
| 1076 | ><TR |
| 1077 | ><TD |
| 1078 | WIDTH="20%" |
| 1079 | ALIGN="RIGHT" |
| 1080 | VALIGN="TOP" |
| 1081 | ><TT |
| 1082 | CLASS="PARAMETER" |
| 1083 | ><I |
| 1084 | >userData</I |
| 1085 | ></TT |
| 1086 | > :</TD |
| 1087 | ><TD |
| 1088 | WIDTH="80%" |
| 1089 | ALIGN="LEFT" |
| 1090 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1091 | > if using SAX, this pointer will be provided on callbacks. </TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1092 | ></TR |
| 1093 | ><TR |
| 1094 | ><TD |
| 1095 | WIDTH="20%" |
| 1096 | ALIGN="RIGHT" |
| 1097 | VALIGN="TOP" |
| 1098 | ><I |
| 1099 | CLASS="EMPHASIS" |
| 1100 | >Returns</I |
| 1101 | > :</TD |
| 1102 | ><TD |
| 1103 | WIDTH="80%" |
| 1104 | ALIGN="LEFT" |
| 1105 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1106 | >the resulting document tree</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1107 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1108 | ></TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1109 | ></TABLE |
| 1110 | ><P |
| 1111 | ></P |
| 1112 | ></DIV |
| 1113 | ></DIV |
| 1114 | ><HR><DIV |
| 1115 | CLASS="REFSECT2" |
| 1116 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 1117 | NAME="AEN20629" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1118 | ></A |
| 1119 | ><H3 |
| 1120 | ><A |
| 1121 | NAME="DOCBPARSEFILE" |
| 1122 | ></A |
| 1123 | >docbParseFile ()</H3 |
| 1124 | ><TABLE |
| 1125 | BORDER="0" |
| 1126 | BGCOLOR="#D6E8FF" |
| 1127 | WIDTH="100%" |
| 1128 | CELLPADDING="6" |
| 1129 | ><TR |
| 1130 | ><TD |
| 1131 | ><PRE |
| 1132 | CLASS="PROGRAMLISTING" |
| 1133 | ><A |
| 1134 | HREF="libxml-docbparser.html#DOCBDOCPTR" |
| 1135 | >docbDocPtr</A |
| 1136 | > docbParseFile (const char *filename, |
| 1137 | const char *encoding);</PRE |
| 1138 | ></TD |
| 1139 | ></TR |
| 1140 | ></TABLE |
| 1141 | ><P |
| 1142 | >parse a Docbook SGML file and build a tree. Automatic support for |
| 1143 | ZLIB/Compress compressed document is provided by default if found |
| 1144 | at compile-time.</P |
| 1145 | ><P |
| 1146 | ></P |
| 1147 | ><DIV |
| 1148 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1149 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 1150 | NAME="AEN20636" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1151 | ></A |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1152 | ><P |
| 1153 | ></P |
| 1154 | ><TABLE |
| 1155 | BORDER="0" |
| 1156 | WIDTH="100%" |
| 1157 | BGCOLOR="#FFD0D0" |
| 1158 | CELLSPACING="0" |
| 1159 | CELLPADDING="4" |
| 1160 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1161 | ><TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1162 | ><TR |
| 1163 | ><TD |
| 1164 | WIDTH="20%" |
| 1165 | ALIGN="RIGHT" |
| 1166 | VALIGN="TOP" |
| 1167 | ><TT |
| 1168 | CLASS="PARAMETER" |
| 1169 | ><I |
| 1170 | >filename</I |
| 1171 | ></TT |
| 1172 | > :</TD |
| 1173 | ><TD |
| 1174 | WIDTH="80%" |
| 1175 | ALIGN="LEFT" |
| 1176 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1177 | > the filename</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1178 | ></TR |
| 1179 | ><TR |
| 1180 | ><TD |
| 1181 | WIDTH="20%" |
| 1182 | ALIGN="RIGHT" |
| 1183 | VALIGN="TOP" |
| 1184 | ><TT |
| 1185 | CLASS="PARAMETER" |
| 1186 | ><I |
| 1187 | >encoding</I |
| 1188 | ></TT |
| 1189 | > :</TD |
| 1190 | ><TD |
| 1191 | WIDTH="80%" |
| 1192 | ALIGN="LEFT" |
| 1193 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1194 | > a free form C string describing document encoding, or NULL</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1195 | ></TR |
| 1196 | ><TR |
| 1197 | ><TD |
| 1198 | WIDTH="20%" |
| 1199 | ALIGN="RIGHT" |
| 1200 | VALIGN="TOP" |
| 1201 | ><I |
| 1202 | CLASS="EMPHASIS" |
| 1203 | >Returns</I |
| 1204 | > :</TD |
| 1205 | ><TD |
| 1206 | WIDTH="80%" |
| 1207 | ALIGN="LEFT" |
| 1208 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1209 | >the resulting document tree</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1210 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1211 | ></TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1212 | ></TABLE |
| 1213 | ><P |
| 1214 | ></P |
| 1215 | ></DIV |
| 1216 | ></DIV |
| 1217 | ><HR><DIV |
| 1218 | CLASS="REFSECT2" |
| 1219 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 1220 | NAME="AEN20653" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1221 | ></A |
| 1222 | ><H3 |
| 1223 | ><A |
| 1224 | NAME="DOCBFREEPARSERCTXT" |
| 1225 | ></A |
| 1226 | >docbFreeParserCtxt ()</H3 |
| 1227 | ><TABLE |
| 1228 | BORDER="0" |
| 1229 | BGCOLOR="#D6E8FF" |
| 1230 | WIDTH="100%" |
| 1231 | CELLPADDING="6" |
| 1232 | ><TR |
| 1233 | ><TD |
| 1234 | ><PRE |
| 1235 | CLASS="PROGRAMLISTING" |
| 1236 | >void docbFreeParserCtxt (<A |
| 1237 | HREF="libxml-docbparser.html#DOCBPARSERCTXTPTR" |
| 1238 | >docbParserCtxtPtr</A |
| 1239 | > ctxt);</PRE |
| 1240 | ></TD |
| 1241 | ></TR |
| 1242 | ></TABLE |
| 1243 | ><P |
| 1244 | >Free all the memory used by a parser context. However the parsed |
| 1245 | document in ctxt->myDoc is not freed.</P |
| 1246 | ><P |
| 1247 | ></P |
| 1248 | ><DIV |
| 1249 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1250 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 1251 | NAME="AEN20660" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1252 | ></A |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1253 | ><P |
| 1254 | ></P |
| 1255 | ><TABLE |
| 1256 | BORDER="0" |
| 1257 | WIDTH="100%" |
| 1258 | BGCOLOR="#FFD0D0" |
| 1259 | CELLSPACING="0" |
| 1260 | CELLPADDING="4" |
| 1261 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1262 | ><TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1263 | ><TR |
| 1264 | ><TD |
| 1265 | WIDTH="20%" |
| 1266 | ALIGN="RIGHT" |
| 1267 | VALIGN="TOP" |
| 1268 | ><TT |
| 1269 | CLASS="PARAMETER" |
| 1270 | ><I |
| 1271 | >ctxt</I |
| 1272 | ></TT |
| 1273 | > :</TD |
| 1274 | ><TD |
| 1275 | WIDTH="80%" |
| 1276 | ALIGN="LEFT" |
| 1277 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1278 | > an SGML parser context</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1279 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1280 | ></TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1281 | ></TABLE |
| 1282 | ><P |
| 1283 | ></P |
| 1284 | ></DIV |
| 1285 | ></DIV |
| 1286 | ><HR><DIV |
| 1287 | CLASS="REFSECT2" |
| 1288 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 1289 | NAME="AEN20669" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1290 | ></A |
| 1291 | ><H3 |
| 1292 | ><A |
| 1293 | NAME="DOCBCREATEPUSHPARSERCTXT" |
| 1294 | ></A |
| 1295 | >docbCreatePushParserCtxt ()</H3 |
| 1296 | ><TABLE |
| 1297 | BORDER="0" |
| 1298 | BGCOLOR="#D6E8FF" |
| 1299 | WIDTH="100%" |
| 1300 | CELLPADDING="6" |
| 1301 | ><TR |
| 1302 | ><TD |
| 1303 | ><PRE |
| 1304 | CLASS="PROGRAMLISTING" |
| 1305 | ><A |
| 1306 | HREF="libxml-docbparser.html#DOCBPARSERCTXTPTR" |
| 1307 | >docbParserCtxtPtr</A |
| 1308 | > docbCreatePushParserCtxt (<A |
| 1309 | HREF="libxml-docbparser.html#DOCBSAXHANDLERPTR" |
| 1310 | >docbSAXHandlerPtr</A |
| 1311 | > sax, |
| 1312 | void *user_data, |
| 1313 | const char *chunk, |
| 1314 | int size, |
| 1315 | const char *filename, |
| 1316 | <A |
| 1317 | HREF="libxml-encoding.html#XMLCHARENCODING" |
| 1318 | >xmlCharEncoding</A |
| 1319 | > enc);</PRE |
| 1320 | ></TD |
| 1321 | ></TR |
| 1322 | ></TABLE |
| 1323 | ><P |
| 1324 | >Create a parser context for using the DocBook SGML parser in push mode |
| 1325 | To allow content encoding detection, <TT |
| 1326 | CLASS="PARAMETER" |
| 1327 | ><I |
| 1328 | >size</I |
| 1329 | ></TT |
| 1330 | > should be >= 4 |
| 1331 | The value of <TT |
| 1332 | CLASS="PARAMETER" |
| 1333 | ><I |
| 1334 | >filename</I |
| 1335 | ></TT |
| 1336 | > is used for fetching external entities |
| 1337 | and error/warning reports.</P |
| 1338 | ><P |
| 1339 | ></P |
| 1340 | ><DIV |
| 1341 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1342 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 1343 | NAME="AEN20680" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1344 | ></A |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1345 | ><P |
| 1346 | ></P |
| 1347 | ><TABLE |
| 1348 | BORDER="0" |
| 1349 | WIDTH="100%" |
| 1350 | BGCOLOR="#FFD0D0" |
| 1351 | CELLSPACING="0" |
| 1352 | CELLPADDING="4" |
| 1353 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1354 | ><TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1355 | ><TR |
| 1356 | ><TD |
| 1357 | WIDTH="20%" |
| 1358 | ALIGN="RIGHT" |
| 1359 | VALIGN="TOP" |
| 1360 | ><TT |
| 1361 | CLASS="PARAMETER" |
| 1362 | ><I |
| 1363 | >sax</I |
| 1364 | ></TT |
| 1365 | > :</TD |
| 1366 | ><TD |
| 1367 | WIDTH="80%" |
| 1368 | ALIGN="LEFT" |
| 1369 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1370 | > a SAX handler</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1371 | ></TR |
| 1372 | ><TR |
| 1373 | ><TD |
| 1374 | WIDTH="20%" |
| 1375 | ALIGN="RIGHT" |
| 1376 | VALIGN="TOP" |
| 1377 | ><TT |
| 1378 | CLASS="PARAMETER" |
| 1379 | ><I |
| 1380 | >user_data</I |
| 1381 | ></TT |
| 1382 | > :</TD |
| 1383 | ><TD |
| 1384 | WIDTH="80%" |
| 1385 | ALIGN="LEFT" |
| 1386 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1387 | > The user data returned on SAX callbacks</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1388 | ></TR |
| 1389 | ><TR |
| 1390 | ><TD |
| 1391 | WIDTH="20%" |
| 1392 | ALIGN="RIGHT" |
| 1393 | VALIGN="TOP" |
| 1394 | ><TT |
| 1395 | CLASS="PARAMETER" |
| 1396 | ><I |
| 1397 | >chunk</I |
| 1398 | ></TT |
| 1399 | > :</TD |
| 1400 | ><TD |
| 1401 | WIDTH="80%" |
| 1402 | ALIGN="LEFT" |
| 1403 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1404 | > a pointer to an array of chars</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1405 | ></TR |
| 1406 | ><TR |
| 1407 | ><TD |
| 1408 | WIDTH="20%" |
| 1409 | ALIGN="RIGHT" |
| 1410 | VALIGN="TOP" |
| 1411 | ><TT |
| 1412 | CLASS="PARAMETER" |
| 1413 | ><I |
| 1414 | >size</I |
| 1415 | ></TT |
| 1416 | > :</TD |
| 1417 | ><TD |
| 1418 | WIDTH="80%" |
| 1419 | ALIGN="LEFT" |
| 1420 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1421 | > number of chars in the array</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1422 | ></TR |
| 1423 | ><TR |
| 1424 | ><TD |
| 1425 | WIDTH="20%" |
| 1426 | ALIGN="RIGHT" |
| 1427 | VALIGN="TOP" |
| 1428 | ><TT |
| 1429 | CLASS="PARAMETER" |
| 1430 | ><I |
| 1431 | >filename</I |
| 1432 | ></TT |
| 1433 | > :</TD |
| 1434 | ><TD |
| 1435 | WIDTH="80%" |
| 1436 | ALIGN="LEFT" |
| 1437 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1438 | > an optional file name or URI</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1439 | ></TR |
| 1440 | ><TR |
| 1441 | ><TD |
| 1442 | WIDTH="20%" |
| 1443 | ALIGN="RIGHT" |
| 1444 | VALIGN="TOP" |
| 1445 | ><TT |
| 1446 | CLASS="PARAMETER" |
| 1447 | ><I |
| 1448 | >enc</I |
| 1449 | ></TT |
| 1450 | > :</TD |
| 1451 | ><TD |
| 1452 | WIDTH="80%" |
| 1453 | ALIGN="LEFT" |
| 1454 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1455 | > an optional encoding</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1456 | ></TR |
| 1457 | ><TR |
| 1458 | ><TD |
| 1459 | WIDTH="20%" |
| 1460 | ALIGN="RIGHT" |
| 1461 | VALIGN="TOP" |
| 1462 | ><I |
| 1463 | CLASS="EMPHASIS" |
| 1464 | >Returns</I |
| 1465 | > :</TD |
| 1466 | ><TD |
| 1467 | WIDTH="80%" |
| 1468 | ALIGN="LEFT" |
| 1469 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1470 | >the new parser context or NULL</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1471 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1472 | ></TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1473 | ></TABLE |
| 1474 | ><P |
| 1475 | ></P |
| 1476 | ></DIV |
| 1477 | ></DIV |
| 1478 | ><HR><DIV |
| 1479 | CLASS="REFSECT2" |
| 1480 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 1481 | NAME="AEN20713" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1482 | ></A |
| 1483 | ><H3 |
| 1484 | ><A |
| 1485 | NAME="DOCBPARSECHUNK" |
| 1486 | ></A |
| 1487 | >docbParseChunk ()</H3 |
| 1488 | ><TABLE |
| 1489 | BORDER="0" |
| 1490 | BGCOLOR="#D6E8FF" |
| 1491 | WIDTH="100%" |
| 1492 | CELLPADDING="6" |
| 1493 | ><TR |
| 1494 | ><TD |
| 1495 | ><PRE |
| 1496 | CLASS="PROGRAMLISTING" |
| 1497 | >int docbParseChunk (<A |
| 1498 | HREF="libxml-docbparser.html#DOCBPARSERCTXTPTR" |
| 1499 | >docbParserCtxtPtr</A |
| 1500 | > ctxt, |
| 1501 | const char *chunk, |
| 1502 | int size, |
| 1503 | int terminate);</PRE |
| 1504 | ></TD |
| 1505 | ></TR |
| 1506 | ></TABLE |
| 1507 | ><P |
| 1508 | >Parse a Chunk of memory</P |
| 1509 | ><P |
| 1510 | ></P |
| 1511 | ><DIV |
| 1512 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1513 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 1514 | NAME="AEN20720" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1515 | ></A |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1516 | ><P |
| 1517 | ></P |
| 1518 | ><TABLE |
| 1519 | BORDER="0" |
| 1520 | WIDTH="100%" |
| 1521 | BGCOLOR="#FFD0D0" |
| 1522 | CELLSPACING="0" |
| 1523 | CELLPADDING="4" |
| 1524 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1525 | ><TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1526 | ><TR |
| 1527 | ><TD |
| 1528 | WIDTH="20%" |
| 1529 | ALIGN="RIGHT" |
| 1530 | VALIGN="TOP" |
| 1531 | ><TT |
| 1532 | CLASS="PARAMETER" |
| 1533 | ><I |
| 1534 | >ctxt</I |
| 1535 | ></TT |
| 1536 | > :</TD |
| 1537 | ><TD |
| 1538 | WIDTH="80%" |
| 1539 | ALIGN="LEFT" |
| 1540 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1541 | > an XML parser context</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +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 | >chunk</I |
| 1552 | ></TT |
| 1553 | > :</TD |
| 1554 | ><TD |
| 1555 | WIDTH="80%" |
| 1556 | ALIGN="LEFT" |
| 1557 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1558 | > an char array</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +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 | >size</I |
| 1569 | ></TT |
| 1570 | > :</TD |
| 1571 | ><TD |
| 1572 | WIDTH="80%" |
| 1573 | ALIGN="LEFT" |
| 1574 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1575 | > the size in byte of the chunk</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +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 | >terminate</I |
| 1586 | ></TT |
| 1587 | > :</TD |
| 1588 | ><TD |
| 1589 | WIDTH="80%" |
| 1590 | ALIGN="LEFT" |
| 1591 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1592 | > last chunk indicator</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +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 | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1607 | >zero if no error, the xmlParserErrors otherwise.</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1608 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1609 | ></TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1610 | ></TABLE |
| 1611 | ><P |
| 1612 | ></P |
| 1613 | ></DIV |
| 1614 | ></DIV |
| 1615 | ><HR><DIV |
| 1616 | CLASS="REFSECT2" |
| 1617 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 1618 | NAME="AEN20745" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1619 | ></A |
| 1620 | ><H3 |
| 1621 | ><A |
| 1622 | NAME="DOCBCREATEFILEPARSERCTXT" |
| 1623 | ></A |
| 1624 | >docbCreateFileParserCtxt ()</H3 |
| 1625 | ><TABLE |
| 1626 | BORDER="0" |
| 1627 | BGCOLOR="#D6E8FF" |
| 1628 | WIDTH="100%" |
| 1629 | CELLPADDING="6" |
| 1630 | ><TR |
| 1631 | ><TD |
| 1632 | ><PRE |
| 1633 | CLASS="PROGRAMLISTING" |
| 1634 | ><A |
| 1635 | HREF="libxml-docbparser.html#DOCBPARSERCTXTPTR" |
| 1636 | >docbParserCtxtPtr</A |
| 1637 | > docbCreateFileParserCtxt (const char *filename, |
| 1638 | const char *encoding);</PRE |
| 1639 | ></TD |
| 1640 | ></TR |
| 1641 | ></TABLE |
| 1642 | ><P |
| 1643 | >Create a parser context for a file content. |
| 1644 | Automatic support for ZLIB/Compress compressed document is provided |
| 1645 | by default if found at compile-time.</P |
| 1646 | ><P |
| 1647 | ></P |
| 1648 | ><DIV |
| 1649 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1650 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 1651 | NAME="AEN20752" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1652 | ></A |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1653 | ><P |
| 1654 | ></P |
| 1655 | ><TABLE |
| 1656 | BORDER="0" |
| 1657 | WIDTH="100%" |
| 1658 | BGCOLOR="#FFD0D0" |
| 1659 | CELLSPACING="0" |
| 1660 | CELLPADDING="4" |
| 1661 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1662 | ><TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1663 | ><TR |
| 1664 | ><TD |
| 1665 | WIDTH="20%" |
| 1666 | ALIGN="RIGHT" |
| 1667 | VALIGN="TOP" |
| 1668 | ><TT |
| 1669 | CLASS="PARAMETER" |
| 1670 | ><I |
| 1671 | >filename</I |
| 1672 | ></TT |
| 1673 | > :</TD |
| 1674 | ><TD |
| 1675 | WIDTH="80%" |
| 1676 | ALIGN="LEFT" |
| 1677 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1678 | > the filename</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1679 | ></TR |
| 1680 | ><TR |
| 1681 | ><TD |
| 1682 | WIDTH="20%" |
| 1683 | ALIGN="RIGHT" |
| 1684 | VALIGN="TOP" |
| 1685 | ><TT |
| 1686 | CLASS="PARAMETER" |
| 1687 | ><I |
| 1688 | >encoding</I |
| 1689 | ></TT |
| 1690 | > :</TD |
| 1691 | ><TD |
| 1692 | WIDTH="80%" |
| 1693 | ALIGN="LEFT" |
| 1694 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1695 | > the SGML document encoding, or NULL</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1696 | ></TR |
| 1697 | ><TR |
| 1698 | ><TD |
| 1699 | WIDTH="20%" |
| 1700 | ALIGN="RIGHT" |
| 1701 | VALIGN="TOP" |
| 1702 | ><I |
| 1703 | CLASS="EMPHASIS" |
| 1704 | >Returns</I |
| 1705 | > :</TD |
| 1706 | ><TD |
| 1707 | WIDTH="80%" |
| 1708 | ALIGN="LEFT" |
| 1709 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1710 | >the new parser context or NULL</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1711 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1712 | ></TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1713 | ></TABLE |
| 1714 | ><P |
| 1715 | ></P |
| 1716 | ></DIV |
| 1717 | ></DIV |
| 1718 | ><HR><DIV |
| 1719 | CLASS="REFSECT2" |
| 1720 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 1721 | NAME="AEN20769" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1722 | ></A |
| 1723 | ><H3 |
| 1724 | ><A |
| 1725 | NAME="DOCBPARSEDOCUMENT" |
| 1726 | ></A |
| 1727 | >docbParseDocument ()</H3 |
| 1728 | ><TABLE |
| 1729 | BORDER="0" |
| 1730 | BGCOLOR="#D6E8FF" |
| 1731 | WIDTH="100%" |
| 1732 | CELLPADDING="6" |
| 1733 | ><TR |
| 1734 | ><TD |
| 1735 | ><PRE |
| 1736 | CLASS="PROGRAMLISTING" |
| 1737 | >int docbParseDocument (<A |
| 1738 | HREF="libxml-docbparser.html#DOCBPARSERCTXTPTR" |
| 1739 | >docbParserCtxtPtr</A |
| 1740 | > ctxt);</PRE |
| 1741 | ></TD |
| 1742 | ></TR |
| 1743 | ></TABLE |
| 1744 | ><P |
| 1745 | >parse an SGML document (and build a tree if using the standard SAX |
| 1746 | interface).</P |
| 1747 | ><P |
| 1748 | ></P |
| 1749 | ><DIV |
| 1750 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1751 | ><A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame^] | 1752 | NAME="AEN20776" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1753 | ></A |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1754 | ><P |
| 1755 | ></P |
| 1756 | ><TABLE |
| 1757 | BORDER="0" |
| 1758 | WIDTH="100%" |
| 1759 | BGCOLOR="#FFD0D0" |
| 1760 | CELLSPACING="0" |
| 1761 | CELLPADDING="4" |
| 1762 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1763 | ><TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1764 | ><TR |
| 1765 | ><TD |
| 1766 | WIDTH="20%" |
| 1767 | ALIGN="RIGHT" |
| 1768 | VALIGN="TOP" |
| 1769 | ><TT |
| 1770 | CLASS="PARAMETER" |
| 1771 | ><I |
| 1772 | >ctxt</I |
| 1773 | ></TT |
| 1774 | > :</TD |
| 1775 | ><TD |
| 1776 | WIDTH="80%" |
| 1777 | ALIGN="LEFT" |
| 1778 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1779 | > an SGML parser context</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1780 | ></TR |
| 1781 | ><TR |
| 1782 | ><TD |
| 1783 | WIDTH="20%" |
| 1784 | ALIGN="RIGHT" |
| 1785 | VALIGN="TOP" |
| 1786 | ><I |
| 1787 | CLASS="EMPHASIS" |
| 1788 | >Returns</I |
| 1789 | > :</TD |
| 1790 | ><TD |
| 1791 | WIDTH="80%" |
| 1792 | ALIGN="LEFT" |
| 1793 | VALIGN="TOP" |
Daniel Veillard | 4b8328d | 2001-07-05 22:48:42 +0000 | [diff] [blame] | 1794 | >0, -1 in case of error. the parser context is augmented |
| 1795 | as a result of the parsing.</TD |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1796 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1797 | ></TBODY |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1798 | ></TABLE |
| 1799 | ><P |
| 1800 | ></P |
| 1801 | ></DIV |
| 1802 | ></DIV |
| 1803 | ></DIV |
| 1804 | ><DIV |
| 1805 | CLASS="NAVFOOTER" |
| 1806 | ><BR |
| 1807 | CLEAR="all"><BR><TABLE |
| 1808 | WIDTH="100%" |
| 1809 | BORDER="0" |
| 1810 | BGCOLOR="#000000" |
| 1811 | CELLPADDING="1" |
| 1812 | CELLSPACING="0" |
| 1813 | ><TR |
| 1814 | ><TD |
| 1815 | WIDTH="25%" |
| 1816 | BGCOLOR="#C00000" |
| 1817 | ALIGN="left" |
| 1818 | ><A |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 1819 | HREF="libxml-globals.html" |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1820 | ><FONT |
| 1821 | COLOR="#FFFFFF" |
| 1822 | SIZE="3" |
| 1823 | ><B |
| 1824 | ><<< Previous Page</B |
| 1825 | ></FONT |
| 1826 | ></A |
| 1827 | ></TD |
| 1828 | ><TD |
| 1829 | WIDTH="25%" |
| 1830 | BGCOLOR="#0000C0" |
| 1831 | ALIGN="center" |
| 1832 | ><FONT |
| 1833 | COLOR="#FFFFFF" |
| 1834 | SIZE="3" |
| 1835 | ><B |
| 1836 | ><A |
| 1837 | HREF="book1.html" |
| 1838 | ><FONT |
| 1839 | COLOR="#FFFFFF" |
| 1840 | SIZE="3" |
| 1841 | ><B |
| 1842 | >Home</B |
| 1843 | ></FONT |
| 1844 | ></A |
| 1845 | ></B |
| 1846 | ></FONT |
| 1847 | ></TD |
| 1848 | ><TD |
| 1849 | WIDTH="25%" |
| 1850 | BGCOLOR="#00C000" |
| 1851 | ALIGN="center" |
| 1852 | ><FONT |
| 1853 | COLOR="#FFFFFF" |
| 1854 | SIZE="3" |
| 1855 | ><B |
| 1856 | ><A |
| 1857 | HREF="libxml-lib.html" |
| 1858 | ><FONT |
| 1859 | COLOR="#FFFFFF" |
| 1860 | SIZE="3" |
| 1861 | ><B |
| 1862 | >Up</B |
| 1863 | ></FONT |
| 1864 | ></A |
| 1865 | ></B |
| 1866 | ></FONT |
| 1867 | ></TD |
| 1868 | ><TD |
| 1869 | WIDTH="25%" |
| 1870 | BGCOLOR="#C00000" |
| 1871 | ALIGN="right" |
| 1872 | ><A |
| 1873 | HREF="libxml-parserinternals.html" |
| 1874 | ><FONT |
| 1875 | COLOR="#FFFFFF" |
| 1876 | SIZE="3" |
| 1877 | ><B |
| 1878 | >Next Page >>></B |
| 1879 | ></FONT |
| 1880 | ></A |
| 1881 | ></TD |
| 1882 | ></TR |
| 1883 | ><TR |
| 1884 | ><TD |
| 1885 | COLSPAN="2" |
| 1886 | ALIGN="left" |
| 1887 | ><FONT |
| 1888 | COLOR="#FFFFFF" |
| 1889 | SIZE="3" |
| 1890 | ><B |
Daniel Veillard | 52dcab3 | 2001-10-30 12:51:17 +0000 | [diff] [blame] | 1891 | >globals</B |
Daniel Veillard | 7d6fd21 | 2001-05-10 15:34:11 +0000 | [diff] [blame] | 1892 | ></FONT |
| 1893 | ></TD |
| 1894 | ><TD |
| 1895 | COLSPAN="2" |
| 1896 | ALIGN="right" |
| 1897 | ><FONT |
| 1898 | COLOR="#FFFFFF" |
| 1899 | SIZE="3" |
| 1900 | ><B |
| 1901 | >parserInternals</B |
| 1902 | ></FONT |
| 1903 | ></TD |
| 1904 | ></TR |
| 1905 | ></TABLE |
| 1906 | ></DIV |
| 1907 | ></BODY |
| 1908 | ></HTML |
| 1909 | > |