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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 125 | NAME="AEN10243" |
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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 133 | NAME="AEN10246" |
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 | >; |
| 200 | <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 201 | HREF="libxml-htmlparser.html#HTMLELEMDESCPTR" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 202 | >htmlElemDescPtr</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 203 | > <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 204 | HREF="libxml-htmlparser.html#HTMLTAGLOOKUP" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 205 | >htmlTagLookup</A |
| 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 | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 210 | <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 211 | HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 212 | >htmlEntityDescPtr</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 213 | > <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 214 | HREF="libxml-htmlparser.html#HTMLENTITYLOOKUP" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 215 | >htmlEntityLookup</A |
| 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 | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 220 | <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 221 | HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR" |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 222 | >htmlEntityDescPtr</A |
| 223 | > <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 224 | HREF="libxml-htmlparser.html#HTMLENTITYVALUELOOKUP" |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 225 | >htmlEntityValueLookup</A |
Daniel Veillard | a41123c | 2001-04-22 19:31:20 +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); |
| 253 | <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 254 | HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 255 | >htmlEntityDescPtr</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 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 |
| 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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 397 | NAME="AEN10310" |
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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 407 | NAME="AEN10313" |
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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 414 | NAME="AEN10315" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 440 | NAME="AEN10320" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 466 | NAME="AEN10325" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 492 | NAME="AEN10330" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 518 | NAME="AEN10335" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 544 | NAME="AEN10340" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 570 | NAME="AEN10345" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 596 | NAME="AEN10350" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 622 | NAME="AEN10355" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 648 | NAME="AEN10360" |
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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 684 | NAME="AEN10365" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 710 | NAME="AEN10370" |
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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 740 | NAME="AEN10375" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 766 | NAME="AEN10380" |
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 | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 782 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 783 | HREF="libxml-htmlparser.html#HTMLELEMDESCPTR" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 784 | >htmlElemDescPtr</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 799 | NAME="AEN10388" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 852 | NAME="AEN10401" |
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 | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 868 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 869 | HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 870 | >htmlEntityDescPtr</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 887 | NAME="AEN10410" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 940 | NAME="AEN10423" |
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" |
| 956 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 957 | HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR" |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 958 | >htmlEntityDescPtr</A |
Daniel Veillard | a41123c | 2001-04-22 19:31:20 +0000 | [diff] [blame] | 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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 972 | NAME="AEN10431" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1025 | NAME="AEN10444" |
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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1061 | NAME="AEN10452" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1131 | NAME="AEN10469" |
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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1172 | NAME="AEN10478" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1259 | NAME="AEN10499" |
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 | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1275 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 1276 | HREF="libxml-htmlparser.html#HTMLENTITYDESCPTR" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 1277 | >htmlEntityDescPtr</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1298 | NAME="AEN10509" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1369 | NAME="AEN10526" |
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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1405 | NAME="AEN10535" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1458 | NAME="AEN10548" |
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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1492 | NAME="AEN10557" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1530 | NAME="AEN10566" |
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 |
| 1563 | >parse an HTML in-memory document and build a tree. |
| 1564 | It use the given SAX function block to handle the parsing callback. |
| 1565 | If sax is NULL, fallback to the default DOM tree building routines.</P |
| 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 | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1571 | NAME="AEN10575" |
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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +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 | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1664 | >the resulting document tree</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1665 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1666 | ></TBODY |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1667 | ></TABLE |
| 1668 | ><P |
| 1669 | ></P |
| 1670 | ></DIV |
| 1671 | ></DIV |
| 1672 | ><HR><DIV |
| 1673 | CLASS="REFSECT2" |
| 1674 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1675 | NAME="AEN10600" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1676 | ></A |
| 1677 | ><H3 |
| 1678 | ><A |
| 1679 | NAME="HTMLPARSEDOC" |
| 1680 | ></A |
| 1681 | >htmlParseDoc ()</H3 |
| 1682 | ><TABLE |
| 1683 | BORDER="0" |
| 1684 | BGCOLOR="#D6E8FF" |
| 1685 | WIDTH="100%" |
| 1686 | CELLPADDING="6" |
| 1687 | ><TR |
| 1688 | ><TD |
| 1689 | ><PRE |
| 1690 | CLASS="PROGRAMLISTING" |
| 1691 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 1692 | HREF="libxml-htmlparser.html#HTMLDOCPTR" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1693 | >htmlDocPtr</A |
| 1694 | > htmlParseDoc (<A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 1695 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | dd6b367 | 1999-09-23 22:19:22 +0000 | [diff] [blame] | 1696 | >xmlChar</A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1697 | > *cur, |
| 1698 | const char *encoding);</PRE |
| 1699 | ></TD |
| 1700 | ></TR |
| 1701 | ></TABLE |
| 1702 | ><P |
| 1703 | >parse an HTML in-memory document and build a tree.</P |
| 1704 | ><P |
| 1705 | ></P |
| 1706 | ><DIV |
| 1707 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1708 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1709 | NAME="AEN10608" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1710 | ></A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1711 | ><P |
| 1712 | ></P |
| 1713 | ><TABLE |
| 1714 | BORDER="0" |
| 1715 | WIDTH="100%" |
| 1716 | BGCOLOR="#FFD0D0" |
| 1717 | CELLSPACING="0" |
| 1718 | CELLPADDING="4" |
| 1719 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1720 | ><TBODY |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1721 | ><TR |
| 1722 | ><TD |
| 1723 | WIDTH="20%" |
| 1724 | ALIGN="RIGHT" |
| 1725 | VALIGN="TOP" |
| 1726 | ><TT |
| 1727 | CLASS="PARAMETER" |
| 1728 | ><I |
| 1729 | >cur</I |
| 1730 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1731 | > :</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1732 | ><TD |
| 1733 | WIDTH="80%" |
| 1734 | ALIGN="LEFT" |
| 1735 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1736 | > a pointer to an array of xmlChar</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1737 | ></TR |
| 1738 | ><TR |
| 1739 | ><TD |
| 1740 | WIDTH="20%" |
| 1741 | ALIGN="RIGHT" |
| 1742 | VALIGN="TOP" |
| 1743 | ><TT |
| 1744 | CLASS="PARAMETER" |
| 1745 | ><I |
| 1746 | >encoding</I |
| 1747 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1748 | > :</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1749 | ><TD |
| 1750 | WIDTH="80%" |
| 1751 | ALIGN="LEFT" |
| 1752 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1753 | > 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] | 1754 | ></TR |
| 1755 | ><TR |
| 1756 | ><TD |
| 1757 | WIDTH="20%" |
| 1758 | ALIGN="RIGHT" |
| 1759 | VALIGN="TOP" |
| 1760 | ><I |
| 1761 | CLASS="EMPHASIS" |
| 1762 | >Returns</I |
| 1763 | > :</TD |
| 1764 | ><TD |
| 1765 | WIDTH="80%" |
| 1766 | ALIGN="LEFT" |
| 1767 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1768 | >the resulting document tree</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1769 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1770 | ></TBODY |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1771 | ></TABLE |
| 1772 | ><P |
| 1773 | ></P |
| 1774 | ></DIV |
| 1775 | ></DIV |
| 1776 | ><HR><DIV |
| 1777 | CLASS="REFSECT2" |
| 1778 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1779 | NAME="AEN10625" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1780 | ></A |
| 1781 | ><H3 |
| 1782 | ><A |
| 1783 | NAME="HTMLSAXPARSEFILE" |
| 1784 | ></A |
| 1785 | >htmlSAXParseFile ()</H3 |
| 1786 | ><TABLE |
| 1787 | BORDER="0" |
| 1788 | BGCOLOR="#D6E8FF" |
| 1789 | WIDTH="100%" |
| 1790 | CELLPADDING="6" |
| 1791 | ><TR |
| 1792 | ><TD |
| 1793 | ><PRE |
| 1794 | CLASS="PROGRAMLISTING" |
| 1795 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 1796 | HREF="libxml-htmlparser.html#HTMLDOCPTR" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1797 | >htmlDocPtr</A |
| 1798 | > htmlSAXParseFile (const char *filename, |
| 1799 | const char *encoding, |
| 1800 | <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 1801 | HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1802 | >htmlSAXHandlerPtr</A |
| 1803 | > sax, |
| 1804 | void *userData);</PRE |
| 1805 | ></TD |
| 1806 | ></TR |
| 1807 | ></TABLE |
| 1808 | ><P |
| 1809 | >parse an HTML file and build a tree. Automatic support for ZLIB/Compress |
| 1810 | compressed document is provided by default if found at compile-time. |
| 1811 | It use the given SAX function block to handle the parsing callback. |
| 1812 | If sax is NULL, fallback to the default DOM tree building routines.</P |
| 1813 | ><P |
| 1814 | ></P |
| 1815 | ><DIV |
| 1816 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1817 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1818 | NAME="AEN10633" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1819 | ></A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1820 | ><P |
| 1821 | ></P |
| 1822 | ><TABLE |
| 1823 | BORDER="0" |
| 1824 | WIDTH="100%" |
| 1825 | BGCOLOR="#FFD0D0" |
| 1826 | CELLSPACING="0" |
| 1827 | CELLPADDING="4" |
| 1828 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1829 | ><TBODY |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1830 | ><TR |
| 1831 | ><TD |
| 1832 | WIDTH="20%" |
| 1833 | ALIGN="RIGHT" |
| 1834 | VALIGN="TOP" |
| 1835 | ><TT |
| 1836 | CLASS="PARAMETER" |
| 1837 | ><I |
| 1838 | >filename</I |
| 1839 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1840 | > :</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1841 | ><TD |
| 1842 | WIDTH="80%" |
| 1843 | ALIGN="LEFT" |
| 1844 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1845 | > the filename</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1846 | ></TR |
| 1847 | ><TR |
| 1848 | ><TD |
| 1849 | WIDTH="20%" |
| 1850 | ALIGN="RIGHT" |
| 1851 | VALIGN="TOP" |
| 1852 | ><TT |
| 1853 | CLASS="PARAMETER" |
| 1854 | ><I |
| 1855 | >encoding</I |
| 1856 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1857 | > :</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1858 | ><TD |
| 1859 | WIDTH="80%" |
| 1860 | ALIGN="LEFT" |
| 1861 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1862 | > 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] | 1863 | ></TR |
| 1864 | ><TR |
| 1865 | ><TD |
| 1866 | WIDTH="20%" |
| 1867 | ALIGN="RIGHT" |
| 1868 | VALIGN="TOP" |
| 1869 | ><TT |
| 1870 | CLASS="PARAMETER" |
| 1871 | ><I |
| 1872 | >sax</I |
| 1873 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1874 | > :</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1875 | ><TD |
| 1876 | WIDTH="80%" |
| 1877 | ALIGN="LEFT" |
| 1878 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1879 | > the SAX handler block</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1880 | ></TR |
| 1881 | ><TR |
| 1882 | ><TD |
| 1883 | WIDTH="20%" |
| 1884 | ALIGN="RIGHT" |
| 1885 | VALIGN="TOP" |
| 1886 | ><TT |
| 1887 | CLASS="PARAMETER" |
| 1888 | ><I |
| 1889 | >userData</I |
| 1890 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1891 | > :</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1892 | ><TD |
| 1893 | WIDTH="80%" |
| 1894 | ALIGN="LEFT" |
| 1895 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1896 | > if using SAX, this pointer will be provided on callbacks. </TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1897 | ></TR |
| 1898 | ><TR |
| 1899 | ><TD |
| 1900 | WIDTH="20%" |
| 1901 | ALIGN="RIGHT" |
| 1902 | VALIGN="TOP" |
| 1903 | ><I |
| 1904 | CLASS="EMPHASIS" |
| 1905 | >Returns</I |
| 1906 | > :</TD |
| 1907 | ><TD |
| 1908 | WIDTH="80%" |
| 1909 | ALIGN="LEFT" |
| 1910 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1911 | >the resulting document tree</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1912 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1913 | ></TBODY |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1914 | ></TABLE |
| 1915 | ><P |
| 1916 | ></P |
| 1917 | ></DIV |
| 1918 | ></DIV |
| 1919 | ><HR><DIV |
| 1920 | CLASS="REFSECT2" |
| 1921 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1922 | NAME="AEN10658" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1923 | ></A |
| 1924 | ><H3 |
| 1925 | ><A |
| 1926 | NAME="HTMLPARSEFILE" |
| 1927 | ></A |
| 1928 | >htmlParseFile ()</H3 |
| 1929 | ><TABLE |
| 1930 | BORDER="0" |
| 1931 | BGCOLOR="#D6E8FF" |
| 1932 | WIDTH="100%" |
| 1933 | CELLPADDING="6" |
| 1934 | ><TR |
| 1935 | ><TD |
| 1936 | ><PRE |
| 1937 | CLASS="PROGRAMLISTING" |
| 1938 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 1939 | HREF="libxml-htmlparser.html#HTMLDOCPTR" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1940 | >htmlDocPtr</A |
| 1941 | > htmlParseFile (const char *filename, |
| 1942 | const char *encoding);</PRE |
| 1943 | ></TD |
| 1944 | ></TR |
| 1945 | ></TABLE |
| 1946 | ><P |
| 1947 | >parse an HTML file and build a tree. Automatic support for ZLIB/Compress |
| 1948 | compressed document is provided by default if found at compile-time.</P |
| 1949 | ><P |
| 1950 | ></P |
| 1951 | ><DIV |
| 1952 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1953 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 1954 | NAME="AEN10665" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1955 | ></A |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1956 | ><P |
| 1957 | ></P |
| 1958 | ><TABLE |
| 1959 | BORDER="0" |
| 1960 | WIDTH="100%" |
| 1961 | BGCOLOR="#FFD0D0" |
| 1962 | CELLSPACING="0" |
| 1963 | CELLPADDING="4" |
| 1964 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1965 | ><TBODY |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1966 | ><TR |
| 1967 | ><TD |
| 1968 | WIDTH="20%" |
| 1969 | ALIGN="RIGHT" |
| 1970 | VALIGN="TOP" |
| 1971 | ><TT |
| 1972 | CLASS="PARAMETER" |
| 1973 | ><I |
| 1974 | >filename</I |
| 1975 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1976 | > :</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1977 | ><TD |
| 1978 | WIDTH="80%" |
| 1979 | ALIGN="LEFT" |
| 1980 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1981 | > the filename</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1982 | ></TR |
| 1983 | ><TR |
| 1984 | ><TD |
| 1985 | WIDTH="20%" |
| 1986 | ALIGN="RIGHT" |
| 1987 | VALIGN="TOP" |
| 1988 | ><TT |
| 1989 | CLASS="PARAMETER" |
| 1990 | ><I |
| 1991 | >encoding</I |
| 1992 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1993 | > :</TD |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 1994 | ><TD |
| 1995 | WIDTH="80%" |
| 1996 | ALIGN="LEFT" |
| 1997 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1998 | > 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] | 1999 | ></TR |
| 2000 | ><TR |
| 2001 | ><TD |
| 2002 | WIDTH="20%" |
| 2003 | ALIGN="RIGHT" |
| 2004 | VALIGN="TOP" |
| 2005 | ><I |
| 2006 | CLASS="EMPHASIS" |
| 2007 | >Returns</I |
| 2008 | > :</TD |
| 2009 | ><TD |
| 2010 | WIDTH="80%" |
| 2011 | ALIGN="LEFT" |
| 2012 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2013 | >the resulting document tree</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2014 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2015 | ></TBODY |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2016 | ></TABLE |
| 2017 | ><P |
| 2018 | ></P |
| 2019 | ></DIV |
| 2020 | ></DIV |
| 2021 | ><HR><DIV |
| 2022 | CLASS="REFSECT2" |
| 2023 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2024 | NAME="AEN10682" |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2025 | ></A |
| 2026 | ><H3 |
| 2027 | ><A |
| 2028 | NAME="UTF8TOHTML" |
| 2029 | ></A |
| 2030 | >UTF8ToHtml ()</H3 |
| 2031 | ><TABLE |
| 2032 | BORDER="0" |
| 2033 | BGCOLOR="#D6E8FF" |
| 2034 | WIDTH="100%" |
| 2035 | CELLPADDING="6" |
| 2036 | ><TR |
| 2037 | ><TD |
| 2038 | ><PRE |
| 2039 | CLASS="PROGRAMLISTING" |
| 2040 | >int UTF8ToHtml (unsigned char *out, |
| 2041 | int *outlen, |
| 2042 | unsigned char *in, |
| 2043 | int *inlen);</PRE |
| 2044 | ></TD |
| 2045 | ></TR |
| 2046 | ></TABLE |
| 2047 | ><P |
| 2048 | >Take a block of UTF-8 chars in and try to convert it to an ASCII |
| 2049 | plus HTML entities block of chars out.</P |
| 2050 | ><P |
| 2051 | ></P |
| 2052 | ><DIV |
| 2053 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2054 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2055 | NAME="AEN10688" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2056 | ></A |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2057 | ><P |
| 2058 | ></P |
| 2059 | ><TABLE |
| 2060 | BORDER="0" |
| 2061 | WIDTH="100%" |
| 2062 | BGCOLOR="#FFD0D0" |
| 2063 | CELLSPACING="0" |
| 2064 | CELLPADDING="4" |
| 2065 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2066 | ><TBODY |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2067 | ><TR |
| 2068 | ><TD |
| 2069 | WIDTH="20%" |
| 2070 | ALIGN="RIGHT" |
| 2071 | VALIGN="TOP" |
| 2072 | ><TT |
| 2073 | CLASS="PARAMETER" |
| 2074 | ><I |
| 2075 | >out</I |
| 2076 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2077 | > :</TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2078 | ><TD |
| 2079 | WIDTH="80%" |
| 2080 | ALIGN="LEFT" |
| 2081 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2082 | > a pointer to an array of bytes to store the result</TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2083 | ></TR |
| 2084 | ><TR |
| 2085 | ><TD |
| 2086 | WIDTH="20%" |
| 2087 | ALIGN="RIGHT" |
| 2088 | VALIGN="TOP" |
| 2089 | ><TT |
| 2090 | CLASS="PARAMETER" |
| 2091 | ><I |
| 2092 | >outlen</I |
| 2093 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2094 | > :</TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2095 | ><TD |
| 2096 | WIDTH="80%" |
| 2097 | ALIGN="LEFT" |
| 2098 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2099 | > the length of <TT |
| 2100 | CLASS="PARAMETER" |
| 2101 | ><I |
| 2102 | >out</I |
| 2103 | ></TT |
| 2104 | ></TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2105 | ></TR |
| 2106 | ><TR |
| 2107 | ><TD |
| 2108 | WIDTH="20%" |
| 2109 | ALIGN="RIGHT" |
| 2110 | VALIGN="TOP" |
| 2111 | ><TT |
| 2112 | CLASS="PARAMETER" |
| 2113 | ><I |
| 2114 | >in</I |
| 2115 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2116 | > :</TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2117 | ><TD |
| 2118 | WIDTH="80%" |
| 2119 | ALIGN="LEFT" |
| 2120 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2121 | > a pointer to an array of UTF-8 chars</TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2122 | ></TR |
| 2123 | ><TR |
| 2124 | ><TD |
| 2125 | WIDTH="20%" |
| 2126 | ALIGN="RIGHT" |
| 2127 | VALIGN="TOP" |
| 2128 | ><TT |
| 2129 | CLASS="PARAMETER" |
| 2130 | ><I |
| 2131 | >inlen</I |
| 2132 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2133 | > :</TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2134 | ><TD |
| 2135 | WIDTH="80%" |
| 2136 | ALIGN="LEFT" |
| 2137 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2138 | > the length of <TT |
| 2139 | CLASS="PARAMETER" |
| 2140 | ><I |
| 2141 | >in</I |
| 2142 | ></TT |
| 2143 | ></TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2144 | ></TR |
| 2145 | ><TR |
| 2146 | ><TD |
| 2147 | WIDTH="20%" |
| 2148 | ALIGN="RIGHT" |
| 2149 | VALIGN="TOP" |
| 2150 | ><I |
| 2151 | CLASS="EMPHASIS" |
| 2152 | >Returns</I |
| 2153 | > :</TD |
| 2154 | ><TD |
| 2155 | WIDTH="80%" |
| 2156 | ALIGN="LEFT" |
| 2157 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2158 | >0 if success, -2 if the transcoding fails, or -1 otherwise |
| 2159 | The value of <TT |
| 2160 | CLASS="PARAMETER" |
| 2161 | ><I |
| 2162 | >inlen</I |
| 2163 | ></TT |
| 2164 | > after return is the number of octets consumed |
| 2165 | as the return value is positive, else unpredictiable. |
| 2166 | The value of <TT |
| 2167 | CLASS="PARAMETER" |
| 2168 | ><I |
| 2169 | >outlen</I |
| 2170 | ></TT |
| 2171 | > after return is the number of octets consumed.</TD |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2172 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2173 | ></TBODY |
Daniel Veillard | e46e20d | 2000-07-14 15:02:46 +0000 | [diff] [blame] | 2174 | ></TABLE |
| 2175 | ><P |
| 2176 | ></P |
| 2177 | ></DIV |
| 2178 | ></DIV |
| 2179 | ><HR><DIV |
| 2180 | CLASS="REFSECT2" |
| 2181 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2182 | NAME="AEN10717" |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2183 | ></A |
| 2184 | ><H3 |
| 2185 | ><A |
| 2186 | NAME="HTMLENCODEENTITIES" |
| 2187 | ></A |
| 2188 | >htmlEncodeEntities ()</H3 |
| 2189 | ><TABLE |
| 2190 | BORDER="0" |
| 2191 | BGCOLOR="#D6E8FF" |
| 2192 | WIDTH="100%" |
| 2193 | CELLPADDING="6" |
| 2194 | ><TR |
| 2195 | ><TD |
| 2196 | ><PRE |
| 2197 | CLASS="PROGRAMLISTING" |
| 2198 | >int htmlEncodeEntities (unsigned char *out, |
| 2199 | int *outlen, |
| 2200 | unsigned char *in, |
| 2201 | int *inlen, |
| 2202 | int quoteChar);</PRE |
| 2203 | ></TD |
| 2204 | ></TR |
| 2205 | ></TABLE |
| 2206 | ><P |
| 2207 | >Take a block of UTF-8 chars in and try to convert it to an ASCII |
| 2208 | plus HTML entities block of chars out.</P |
| 2209 | ><P |
| 2210 | ></P |
| 2211 | ><DIV |
| 2212 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2213 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2214 | NAME="AEN10723" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2215 | ></A |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2216 | ><P |
| 2217 | ></P |
| 2218 | ><TABLE |
| 2219 | BORDER="0" |
| 2220 | WIDTH="100%" |
| 2221 | BGCOLOR="#FFD0D0" |
| 2222 | CELLSPACING="0" |
| 2223 | CELLPADDING="4" |
| 2224 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2225 | ><TBODY |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2226 | ><TR |
| 2227 | ><TD |
| 2228 | WIDTH="20%" |
| 2229 | ALIGN="RIGHT" |
| 2230 | VALIGN="TOP" |
| 2231 | ><TT |
| 2232 | CLASS="PARAMETER" |
| 2233 | ><I |
| 2234 | >out</I |
| 2235 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2236 | > :</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2237 | ><TD |
| 2238 | WIDTH="80%" |
| 2239 | ALIGN="LEFT" |
| 2240 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2241 | > a pointer to an array of bytes to store the result</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2242 | ></TR |
| 2243 | ><TR |
| 2244 | ><TD |
| 2245 | WIDTH="20%" |
| 2246 | ALIGN="RIGHT" |
| 2247 | VALIGN="TOP" |
| 2248 | ><TT |
| 2249 | CLASS="PARAMETER" |
| 2250 | ><I |
| 2251 | >outlen</I |
| 2252 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2253 | > :</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2254 | ><TD |
| 2255 | WIDTH="80%" |
| 2256 | ALIGN="LEFT" |
| 2257 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2258 | > the length of <TT |
| 2259 | CLASS="PARAMETER" |
| 2260 | ><I |
| 2261 | >out</I |
| 2262 | ></TT |
| 2263 | ></TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2264 | ></TR |
| 2265 | ><TR |
| 2266 | ><TD |
| 2267 | WIDTH="20%" |
| 2268 | ALIGN="RIGHT" |
| 2269 | VALIGN="TOP" |
| 2270 | ><TT |
| 2271 | CLASS="PARAMETER" |
| 2272 | ><I |
| 2273 | >in</I |
| 2274 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2275 | > :</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2276 | ><TD |
| 2277 | WIDTH="80%" |
| 2278 | ALIGN="LEFT" |
| 2279 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2280 | > a pointer to an array of UTF-8 chars</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2281 | ></TR |
| 2282 | ><TR |
| 2283 | ><TD |
| 2284 | WIDTH="20%" |
| 2285 | ALIGN="RIGHT" |
| 2286 | VALIGN="TOP" |
| 2287 | ><TT |
| 2288 | CLASS="PARAMETER" |
| 2289 | ><I |
| 2290 | >inlen</I |
| 2291 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2292 | > :</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2293 | ><TD |
| 2294 | WIDTH="80%" |
| 2295 | ALIGN="LEFT" |
| 2296 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2297 | > the length of <TT |
| 2298 | CLASS="PARAMETER" |
| 2299 | ><I |
| 2300 | >in</I |
| 2301 | ></TT |
| 2302 | ></TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2303 | ></TR |
| 2304 | ><TR |
| 2305 | ><TD |
| 2306 | WIDTH="20%" |
| 2307 | ALIGN="RIGHT" |
| 2308 | VALIGN="TOP" |
| 2309 | ><TT |
| 2310 | CLASS="PARAMETER" |
| 2311 | ><I |
| 2312 | >quoteChar</I |
| 2313 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2314 | > :</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2315 | ><TD |
| 2316 | WIDTH="80%" |
| 2317 | ALIGN="LEFT" |
| 2318 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2319 | > the quote character to escape (' or ") or zero.</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2320 | ></TR |
| 2321 | ><TR |
| 2322 | ><TD |
| 2323 | WIDTH="20%" |
| 2324 | ALIGN="RIGHT" |
| 2325 | VALIGN="TOP" |
| 2326 | ><I |
| 2327 | CLASS="EMPHASIS" |
| 2328 | >Returns</I |
| 2329 | > :</TD |
| 2330 | ><TD |
| 2331 | WIDTH="80%" |
| 2332 | ALIGN="LEFT" |
| 2333 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2334 | >0 if success, -2 if the transcoding fails, or -1 otherwise |
| 2335 | The value of <TT |
| 2336 | CLASS="PARAMETER" |
| 2337 | ><I |
| 2338 | >inlen</I |
| 2339 | ></TT |
| 2340 | > after return is the number of octets consumed |
| 2341 | as the return value is positive, else unpredictiable. |
| 2342 | The value of <TT |
| 2343 | CLASS="PARAMETER" |
| 2344 | ><I |
| 2345 | >outlen</I |
| 2346 | ></TT |
| 2347 | > after return is the number of octets consumed.</TD |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2348 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2349 | ></TBODY |
Daniel Veillard | 3bff2b0 | 2000-10-01 20:33:47 +0000 | [diff] [blame] | 2350 | ></TABLE |
| 2351 | ><P |
| 2352 | ></P |
| 2353 | ></DIV |
| 2354 | ></DIV |
| 2355 | ><HR><DIV |
| 2356 | CLASS="REFSECT2" |
| 2357 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2358 | NAME="AEN10756" |
Daniel Veillard | 29a11cc | 2000-10-25 13:32:39 +0000 | [diff] [blame] | 2359 | ></A |
| 2360 | ><H3 |
| 2361 | ><A |
| 2362 | NAME="HTMLISSCRIPTATTRIBUTE" |
| 2363 | ></A |
| 2364 | >htmlIsScriptAttribute ()</H3 |
| 2365 | ><TABLE |
| 2366 | BORDER="0" |
| 2367 | BGCOLOR="#D6E8FF" |
| 2368 | WIDTH="100%" |
| 2369 | CELLPADDING="6" |
| 2370 | ><TR |
| 2371 | ><TD |
| 2372 | ><PRE |
| 2373 | CLASS="PROGRAMLISTING" |
| 2374 | >int htmlIsScriptAttribute (const <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 2375 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | 29a11cc | 2000-10-25 13:32:39 +0000 | [diff] [blame] | 2376 | >xmlChar</A |
| 2377 | > *name);</PRE |
| 2378 | ></TD |
| 2379 | ></TR |
| 2380 | ></TABLE |
| 2381 | ><P |
| 2382 | >Check if an attribute is of content type Script</P |
| 2383 | ><P |
| 2384 | ></P |
| 2385 | ><DIV |
| 2386 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2387 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2388 | NAME="AEN10763" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2389 | ></A |
Daniel Veillard | 29a11cc | 2000-10-25 13:32:39 +0000 | [diff] [blame] | 2390 | ><P |
| 2391 | ></P |
| 2392 | ><TABLE |
| 2393 | BORDER="0" |
| 2394 | WIDTH="100%" |
| 2395 | BGCOLOR="#FFD0D0" |
| 2396 | CELLSPACING="0" |
| 2397 | CELLPADDING="4" |
| 2398 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2399 | ><TBODY |
Daniel Veillard | 29a11cc | 2000-10-25 13:32:39 +0000 | [diff] [blame] | 2400 | ><TR |
| 2401 | ><TD |
| 2402 | WIDTH="20%" |
| 2403 | ALIGN="RIGHT" |
| 2404 | VALIGN="TOP" |
| 2405 | ><TT |
| 2406 | CLASS="PARAMETER" |
| 2407 | ><I |
| 2408 | >name</I |
| 2409 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2410 | > :</TD |
Daniel Veillard | 29a11cc | 2000-10-25 13:32:39 +0000 | [diff] [blame] | 2411 | ><TD |
| 2412 | WIDTH="80%" |
| 2413 | ALIGN="LEFT" |
| 2414 | VALIGN="TOP" |
| 2415 | > an attribute name</TD |
| 2416 | ></TR |
| 2417 | ><TR |
| 2418 | ><TD |
| 2419 | WIDTH="20%" |
| 2420 | ALIGN="RIGHT" |
| 2421 | VALIGN="TOP" |
| 2422 | ><I |
| 2423 | CLASS="EMPHASIS" |
| 2424 | >Returns</I |
| 2425 | > :</TD |
| 2426 | ><TD |
| 2427 | WIDTH="80%" |
| 2428 | ALIGN="LEFT" |
| 2429 | VALIGN="TOP" |
| 2430 | >1 is the attribute is a script 0 otherwise</TD |
| 2431 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2432 | ></TBODY |
Daniel Veillard | 29a11cc | 2000-10-25 13:32:39 +0000 | [diff] [blame] | 2433 | ></TABLE |
| 2434 | ><P |
| 2435 | ></P |
| 2436 | ></DIV |
| 2437 | ></DIV |
| 2438 | ><HR><DIV |
| 2439 | CLASS="REFSECT2" |
| 2440 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2441 | NAME="AEN10776" |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 2442 | ></A |
| 2443 | ><H3 |
| 2444 | ><A |
| 2445 | NAME="HTMLHANDLEOMITTEDELEM" |
| 2446 | ></A |
| 2447 | >htmlHandleOmittedElem ()</H3 |
| 2448 | ><TABLE |
| 2449 | BORDER="0" |
| 2450 | BGCOLOR="#D6E8FF" |
| 2451 | WIDTH="100%" |
| 2452 | CELLPADDING="6" |
| 2453 | ><TR |
| 2454 | ><TD |
| 2455 | ><PRE |
| 2456 | CLASS="PROGRAMLISTING" |
| 2457 | >int htmlHandleOmittedElem (int val);</PRE |
| 2458 | ></TD |
| 2459 | ></TR |
| 2460 | ></TABLE |
| 2461 | ><P |
| 2462 | >Set and return the previous value for handling HTML omitted tags.</P |
| 2463 | ><P |
| 2464 | ></P |
| 2465 | ><DIV |
| 2466 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2467 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2468 | NAME="AEN10782" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2469 | ></A |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 2470 | ><P |
| 2471 | ></P |
| 2472 | ><TABLE |
| 2473 | BORDER="0" |
| 2474 | WIDTH="100%" |
| 2475 | BGCOLOR="#FFD0D0" |
| 2476 | CELLSPACING="0" |
| 2477 | CELLPADDING="4" |
| 2478 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2479 | ><TBODY |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 2480 | ><TR |
| 2481 | ><TD |
| 2482 | WIDTH="20%" |
| 2483 | ALIGN="RIGHT" |
| 2484 | VALIGN="TOP" |
| 2485 | ><TT |
| 2486 | CLASS="PARAMETER" |
| 2487 | ><I |
| 2488 | >val</I |
| 2489 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2490 | > :</TD |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 2491 | ><TD |
| 2492 | WIDTH="80%" |
| 2493 | ALIGN="LEFT" |
| 2494 | VALIGN="TOP" |
| 2495 | > int 0 or 1 </TD |
| 2496 | ></TR |
| 2497 | ><TR |
| 2498 | ><TD |
| 2499 | WIDTH="20%" |
| 2500 | ALIGN="RIGHT" |
| 2501 | VALIGN="TOP" |
| 2502 | ><I |
| 2503 | CLASS="EMPHASIS" |
| 2504 | >Returns</I |
| 2505 | > :</TD |
| 2506 | ><TD |
| 2507 | WIDTH="80%" |
| 2508 | ALIGN="LEFT" |
| 2509 | VALIGN="TOP" |
| 2510 | >the last value for 0 for no handling, 1 for auto insertion.</TD |
| 2511 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2512 | ></TBODY |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 2513 | ></TABLE |
| 2514 | ><P |
| 2515 | ></P |
| 2516 | ></DIV |
| 2517 | ></DIV |
| 2518 | ><HR><DIV |
| 2519 | CLASS="REFSECT2" |
| 2520 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2521 | NAME="AEN10795" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2522 | ></A |
| 2523 | ><H3 |
| 2524 | ><A |
| 2525 | NAME="HTMLFREEPARSERCTXT" |
| 2526 | ></A |
| 2527 | >htmlFreeParserCtxt ()</H3 |
| 2528 | ><TABLE |
| 2529 | BORDER="0" |
| 2530 | BGCOLOR="#D6E8FF" |
| 2531 | WIDTH="100%" |
| 2532 | CELLPADDING="6" |
| 2533 | ><TR |
| 2534 | ><TD |
| 2535 | ><PRE |
| 2536 | CLASS="PROGRAMLISTING" |
| 2537 | >void htmlFreeParserCtxt (<A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 2538 | HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2539 | >htmlParserCtxtPtr</A |
| 2540 | > ctxt);</PRE |
| 2541 | ></TD |
| 2542 | ></TR |
| 2543 | ></TABLE |
| 2544 | ><P |
| 2545 | >Free all the memory used by a parser context. However the parsed |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2546 | document in ctxt->myDoc is not freed.</P |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2547 | ><P |
| 2548 | ></P |
| 2549 | ><DIV |
| 2550 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2551 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2552 | NAME="AEN10802" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2553 | ></A |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2554 | ><P |
| 2555 | ></P |
| 2556 | ><TABLE |
| 2557 | BORDER="0" |
| 2558 | WIDTH="100%" |
| 2559 | BGCOLOR="#FFD0D0" |
| 2560 | CELLSPACING="0" |
| 2561 | CELLPADDING="4" |
| 2562 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2563 | ><TBODY |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2564 | ><TR |
| 2565 | ><TD |
| 2566 | WIDTH="20%" |
| 2567 | ALIGN="RIGHT" |
| 2568 | VALIGN="TOP" |
| 2569 | ><TT |
| 2570 | CLASS="PARAMETER" |
| 2571 | ><I |
| 2572 | >ctxt</I |
| 2573 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2574 | > :</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2575 | ><TD |
| 2576 | WIDTH="80%" |
| 2577 | ALIGN="LEFT" |
| 2578 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2579 | > an HTML parser context</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2580 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2581 | ></TBODY |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2582 | ></TABLE |
| 2583 | ><P |
| 2584 | ></P |
| 2585 | ></DIV |
| 2586 | ></DIV |
| 2587 | ><HR><DIV |
| 2588 | CLASS="REFSECT2" |
| 2589 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2590 | NAME="AEN10811" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2591 | ></A |
| 2592 | ><H3 |
| 2593 | ><A |
| 2594 | NAME="HTMLCREATEPUSHPARSERCTXT" |
| 2595 | ></A |
| 2596 | >htmlCreatePushParserCtxt ()</H3 |
| 2597 | ><TABLE |
| 2598 | BORDER="0" |
| 2599 | BGCOLOR="#D6E8FF" |
| 2600 | WIDTH="100%" |
| 2601 | CELLPADDING="6" |
| 2602 | ><TR |
| 2603 | ><TD |
| 2604 | ><PRE |
| 2605 | CLASS="PROGRAMLISTING" |
| 2606 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 2607 | HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2608 | >htmlParserCtxtPtr</A |
| 2609 | > htmlCreatePushParserCtxt (<A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 2610 | HREF="libxml-htmlparser.html#HTMLSAXHANDLERPTR" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2611 | >htmlSAXHandlerPtr</A |
| 2612 | > sax, |
| 2613 | void *user_data, |
| 2614 | const char *chunk, |
| 2615 | int size, |
| 2616 | const char *filename, |
| 2617 | <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 2618 | HREF="libxml-encoding.html#XMLCHARENCODING" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2619 | >xmlCharEncoding</A |
| 2620 | > enc);</PRE |
| 2621 | ></TD |
| 2622 | ></TR |
| 2623 | ></TABLE |
| 2624 | ><P |
| 2625 | >Create a parser context for using the HTML parser in push mode |
| 2626 | To allow content encoding detection, <TT |
| 2627 | CLASS="PARAMETER" |
| 2628 | ><I |
| 2629 | >size</I |
| 2630 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2631 | > should be >= 4 |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2632 | The value of <TT |
| 2633 | CLASS="PARAMETER" |
| 2634 | ><I |
| 2635 | >filename</I |
| 2636 | ></TT |
| 2637 | > is used for fetching external entities |
| 2638 | and error/warning reports.</P |
| 2639 | ><P |
| 2640 | ></P |
| 2641 | ><DIV |
| 2642 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2643 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2644 | NAME="AEN10822" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2645 | ></A |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2646 | ><P |
| 2647 | ></P |
| 2648 | ><TABLE |
| 2649 | BORDER="0" |
| 2650 | WIDTH="100%" |
| 2651 | BGCOLOR="#FFD0D0" |
| 2652 | CELLSPACING="0" |
| 2653 | CELLPADDING="4" |
| 2654 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2655 | ><TBODY |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2656 | ><TR |
| 2657 | ><TD |
| 2658 | WIDTH="20%" |
| 2659 | ALIGN="RIGHT" |
| 2660 | VALIGN="TOP" |
| 2661 | ><TT |
| 2662 | CLASS="PARAMETER" |
| 2663 | ><I |
| 2664 | >sax</I |
| 2665 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2666 | > :</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2667 | ><TD |
| 2668 | WIDTH="80%" |
| 2669 | ALIGN="LEFT" |
| 2670 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2671 | > a SAX handler</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2672 | ></TR |
| 2673 | ><TR |
| 2674 | ><TD |
| 2675 | WIDTH="20%" |
| 2676 | ALIGN="RIGHT" |
| 2677 | VALIGN="TOP" |
| 2678 | ><TT |
| 2679 | CLASS="PARAMETER" |
| 2680 | ><I |
| 2681 | >user_data</I |
| 2682 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2683 | > :</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2684 | ><TD |
| 2685 | WIDTH="80%" |
| 2686 | ALIGN="LEFT" |
| 2687 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2688 | > The user data returned on SAX callbacks</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2689 | ></TR |
| 2690 | ><TR |
| 2691 | ><TD |
| 2692 | WIDTH="20%" |
| 2693 | ALIGN="RIGHT" |
| 2694 | VALIGN="TOP" |
| 2695 | ><TT |
| 2696 | CLASS="PARAMETER" |
| 2697 | ><I |
| 2698 | >chunk</I |
| 2699 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2700 | > :</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2701 | ><TD |
| 2702 | WIDTH="80%" |
| 2703 | ALIGN="LEFT" |
| 2704 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2705 | > a pointer to an array of chars</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2706 | ></TR |
| 2707 | ><TR |
| 2708 | ><TD |
| 2709 | WIDTH="20%" |
| 2710 | ALIGN="RIGHT" |
| 2711 | VALIGN="TOP" |
| 2712 | ><TT |
| 2713 | CLASS="PARAMETER" |
| 2714 | ><I |
| 2715 | >size</I |
| 2716 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2717 | > :</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2718 | ><TD |
| 2719 | WIDTH="80%" |
| 2720 | ALIGN="LEFT" |
| 2721 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2722 | > number of chars in the array</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2723 | ></TR |
| 2724 | ><TR |
| 2725 | ><TD |
| 2726 | WIDTH="20%" |
| 2727 | ALIGN="RIGHT" |
| 2728 | VALIGN="TOP" |
| 2729 | ><TT |
| 2730 | CLASS="PARAMETER" |
| 2731 | ><I |
| 2732 | >filename</I |
| 2733 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2734 | > :</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2735 | ><TD |
| 2736 | WIDTH="80%" |
| 2737 | ALIGN="LEFT" |
| 2738 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2739 | > an optional file name or URI</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2740 | ></TR |
| 2741 | ><TR |
| 2742 | ><TD |
| 2743 | WIDTH="20%" |
| 2744 | ALIGN="RIGHT" |
| 2745 | VALIGN="TOP" |
| 2746 | ><TT |
| 2747 | CLASS="PARAMETER" |
| 2748 | ><I |
| 2749 | >enc</I |
| 2750 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2751 | > :</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2752 | ><TD |
| 2753 | WIDTH="80%" |
| 2754 | ALIGN="LEFT" |
| 2755 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2756 | > an optional encoding</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2757 | ></TR |
| 2758 | ><TR |
| 2759 | ><TD |
| 2760 | WIDTH="20%" |
| 2761 | ALIGN="RIGHT" |
| 2762 | VALIGN="TOP" |
| 2763 | ><I |
| 2764 | CLASS="EMPHASIS" |
| 2765 | >Returns</I |
| 2766 | > :</TD |
| 2767 | ><TD |
| 2768 | WIDTH="80%" |
| 2769 | ALIGN="LEFT" |
| 2770 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2771 | >the new parser context or NULL</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2772 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2773 | ></TBODY |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2774 | ></TABLE |
| 2775 | ><P |
| 2776 | ></P |
| 2777 | ></DIV |
| 2778 | ></DIV |
| 2779 | ><HR><DIV |
| 2780 | CLASS="REFSECT2" |
| 2781 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2782 | NAME="AEN10855" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2783 | ></A |
| 2784 | ><H3 |
| 2785 | ><A |
| 2786 | NAME="HTMLPARSECHUNK" |
| 2787 | ></A |
| 2788 | >htmlParseChunk ()</H3 |
| 2789 | ><TABLE |
| 2790 | BORDER="0" |
| 2791 | BGCOLOR="#D6E8FF" |
| 2792 | WIDTH="100%" |
| 2793 | CELLPADDING="6" |
| 2794 | ><TR |
| 2795 | ><TD |
| 2796 | ><PRE |
| 2797 | CLASS="PROGRAMLISTING" |
| 2798 | >int htmlParseChunk (<A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 2799 | HREF="libxml-htmlparser.html#HTMLPARSERCTXTPTR" |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2800 | >htmlParserCtxtPtr</A |
| 2801 | > ctxt, |
| 2802 | const char *chunk, |
| 2803 | int size, |
| 2804 | int terminate);</PRE |
| 2805 | ></TD |
| 2806 | ></TR |
| 2807 | ></TABLE |
| 2808 | ><P |
| 2809 | >Parse a Chunk of memory</P |
| 2810 | ><P |
| 2811 | ></P |
| 2812 | ><DIV |
| 2813 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2814 | ><A |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 2815 | NAME="AEN10862" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2816 | ></A |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2817 | ><P |
| 2818 | ></P |
| 2819 | ><TABLE |
| 2820 | BORDER="0" |
| 2821 | WIDTH="100%" |
| 2822 | BGCOLOR="#FFD0D0" |
| 2823 | CELLSPACING="0" |
| 2824 | CELLPADDING="4" |
| 2825 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2826 | ><TBODY |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2827 | ><TR |
| 2828 | ><TD |
| 2829 | WIDTH="20%" |
| 2830 | ALIGN="RIGHT" |
| 2831 | VALIGN="TOP" |
| 2832 | ><TT |
| 2833 | CLASS="PARAMETER" |
| 2834 | ><I |
| 2835 | >ctxt</I |
| 2836 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2837 | > :</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2838 | ><TD |
| 2839 | WIDTH="80%" |
| 2840 | ALIGN="LEFT" |
| 2841 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2842 | > an XML parser context</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2843 | ></TR |
| 2844 | ><TR |
| 2845 | ><TD |
| 2846 | WIDTH="20%" |
| 2847 | ALIGN="RIGHT" |
| 2848 | VALIGN="TOP" |
| 2849 | ><TT |
| 2850 | CLASS="PARAMETER" |
| 2851 | ><I |
| 2852 | >chunk</I |
| 2853 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2854 | > :</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2855 | ><TD |
| 2856 | WIDTH="80%" |
| 2857 | ALIGN="LEFT" |
| 2858 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2859 | > an char array</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2860 | ></TR |
| 2861 | ><TR |
| 2862 | ><TD |
| 2863 | WIDTH="20%" |
| 2864 | ALIGN="RIGHT" |
| 2865 | VALIGN="TOP" |
| 2866 | ><TT |
| 2867 | CLASS="PARAMETER" |
| 2868 | ><I |
| 2869 | >size</I |
| 2870 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2871 | > :</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2872 | ><TD |
| 2873 | WIDTH="80%" |
| 2874 | ALIGN="LEFT" |
| 2875 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2876 | > the size in byte of the chunk</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2877 | ></TR |
| 2878 | ><TR |
| 2879 | ><TD |
| 2880 | WIDTH="20%" |
| 2881 | ALIGN="RIGHT" |
| 2882 | VALIGN="TOP" |
| 2883 | ><TT |
| 2884 | CLASS="PARAMETER" |
| 2885 | ><I |
| 2886 | >terminate</I |
| 2887 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2888 | > :</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2889 | ><TD |
| 2890 | WIDTH="80%" |
| 2891 | ALIGN="LEFT" |
| 2892 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2893 | > last chunk indicator</TD |
Daniel Veillard | 3f6f7f6 | 2000-06-30 17:58:25 +0000 | [diff] [blame] | 2894 | ></TR |
| 2895 | ><TR |
| 2896 | ><TD |
| 2897 | WIDTH="20%" |
| 2898 | ALIGN="RIGHT" |
| 2899 | VALIGN="TOP" |
| 2900 | ><I |
| 2901 | CLASS="EMPHASIS" |
| 2902 | >Returns</I |
| 2903 | > :</TD |
| 2904 | ><TD |
| 2905 | WIDTH="80%" |
| 2906 | ALIGN="LEFT" |
| 2907 | VALIGN="TOP" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 2908 | >zero if no error, the xmlParserErrors otherwise.</TD |
Daniel Veillard | 437b87b | 2000-01-03 17:30:46 +0000 | [diff] [blame] | 2909 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 2910 | ></TBODY |
Daniel Veillard | 437b87b | 2000-01-03 17:30:46 +0000 | [diff] [blame] | 2911 | ></TABLE |
| 2912 | ><P |
| 2913 | ></P |
| 2914 | ></DIV |
| 2915 | ></DIV |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 2916 | ></DIV |
| 2917 | ><DIV |
| 2918 | CLASS="NAVFOOTER" |
Daniel Veillard | 00fdf37 | 1999-10-08 09:40:39 +0000 | [diff] [blame] | 2919 | ><BR |
| 2920 | CLEAR="all"><BR><TABLE |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 2921 | WIDTH="100%" |
| 2922 | BORDER="0" |
| 2923 | BGCOLOR="#000000" |
| 2924 | CELLPADDING="1" |
| 2925 | CELLSPACING="0" |
| 2926 | ><TR |
| 2927 | ><TD |
| 2928 | WIDTH="25%" |
| 2929 | BGCOLOR="#C00000" |
| 2930 | ALIGN="left" |
| 2931 | ><A |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 2932 | HREF="libxml-xmlerror.html" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 2933 | ><FONT |
| 2934 | COLOR="#FFFFFF" |
| 2935 | SIZE="3" |
| 2936 | ><B |
| 2937 | ><<< Previous Page</B |
| 2938 | ></FONT |
| 2939 | ></A |
| 2940 | ></TD |
| 2941 | ><TD |
| 2942 | WIDTH="25%" |
| 2943 | BGCOLOR="#0000C0" |
| 2944 | ALIGN="center" |
| 2945 | ><FONT |
| 2946 | COLOR="#FFFFFF" |
| 2947 | SIZE="3" |
| 2948 | ><B |
| 2949 | ><A |
| 2950 | HREF="book1.html" |
| 2951 | ><FONT |
| 2952 | COLOR="#FFFFFF" |
| 2953 | SIZE="3" |
| 2954 | ><B |
| 2955 | >Home</B |
| 2956 | ></FONT |
| 2957 | ></A |
| 2958 | ></B |
| 2959 | ></FONT |
| 2960 | ></TD |
| 2961 | ><TD |
| 2962 | WIDTH="25%" |
| 2963 | BGCOLOR="#00C000" |
| 2964 | ALIGN="center" |
| 2965 | ><FONT |
| 2966 | COLOR="#FFFFFF" |
| 2967 | SIZE="3" |
| 2968 | ><B |
| 2969 | ><A |
Daniel Veillard | 3500838 | 1999-10-25 13:15:52 +0000 | [diff] [blame] | 2970 | HREF="libxml-lib.html" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 2971 | ><FONT |
| 2972 | COLOR="#FFFFFF" |
| 2973 | SIZE="3" |
| 2974 | ><B |
| 2975 | >Up</B |
| 2976 | ></FONT |
| 2977 | ></A |
| 2978 | ></B |
| 2979 | ></FONT |
| 2980 | ></TD |
| 2981 | ><TD |
| 2982 | WIDTH="25%" |
| 2983 | BGCOLOR="#C00000" |
| 2984 | ALIGN="right" |
| 2985 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 2986 | HREF="libxml-htmltree.html" |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 2987 | ><FONT |
| 2988 | COLOR="#FFFFFF" |
| 2989 | SIZE="3" |
| 2990 | ><B |
| 2991 | >Next Page >>></B |
| 2992 | ></FONT |
| 2993 | ></A |
| 2994 | ></TD |
| 2995 | ></TR |
| 2996 | ><TR |
| 2997 | ><TD |
| 2998 | COLSPAN="2" |
| 2999 | ALIGN="left" |
| 3000 | ><FONT |
| 3001 | COLOR="#FFFFFF" |
| 3002 | SIZE="3" |
| 3003 | ><B |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 3004 | >xmlerror</B |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 3005 | ></FONT |
| 3006 | ></TD |
| 3007 | ><TD |
| 3008 | COLSPAN="2" |
| 3009 | ALIGN="right" |
| 3010 | ><FONT |
| 3011 | COLOR="#FFFFFF" |
| 3012 | SIZE="3" |
| 3013 | ><B |
| 3014 | >HTMLtree</B |
| 3015 | ></FONT |
| 3016 | ></TD |
| 3017 | ></TR |
| 3018 | ></TABLE |
| 3019 | ></DIV |
| 3020 | ></BODY |
| 3021 | ></HTML |
| 3022 | > |