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