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