Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1 | <HTML |
| 2 | ><HEAD |
| 3 | ><TITLE |
| 4 | >uri</TITLE |
| 5 | ><META |
| 6 | NAME="GENERATOR" |
Daniel Veillard | 60087f3 | 2001-10-10 09:45:09 +0000 | [diff] [blame] | 7 | CONTENT="Modular DocBook HTML Stylesheet Version 1.64 |
| 8 | "><LINK |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 9 | REL="HOME" |
| 10 | TITLE="Gnome XML Library Reference Manual" |
| 11 | HREF="book1.html"><LINK |
| 12 | REL="UP" |
| 13 | TITLE="Libxml Library Reference" |
| 14 | HREF="libxml-lib.html"><LINK |
| 15 | REL="PREVIOUS" |
| 16 | TITLE="valid" |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 17 | HREF="libxml-valid.html"><LINK |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 18 | REL="NEXT" |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 19 | TITLE="xmlerror" |
| 20 | HREF="libxml-xmlerror.html"></HEAD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 21 | ><BODY |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 22 | CLASS="REFENTRY" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 23 | BGCOLOR="#FFFFFF" |
| 24 | TEXT="#000000" |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 25 | LINK="#0000FF" |
| 26 | VLINK="#840084" |
| 27 | ALINK="#0000FF" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 28 | ><DIV |
| 29 | CLASS="NAVHEADER" |
| 30 | ><TABLE |
| 31 | WIDTH="100%" |
| 32 | BORDER="0" |
| 33 | BGCOLOR="#000000" |
| 34 | CELLPADDING="1" |
| 35 | CELLSPACING="0" |
| 36 | ><TR |
| 37 | ><TH |
| 38 | COLSPAN="4" |
| 39 | ALIGN="center" |
| 40 | ><FONT |
| 41 | COLOR="#FFFFFF" |
| 42 | SIZE="5" |
| 43 | >Gnome XML Library Reference Manual</FONT |
| 44 | ></TH |
| 45 | ></TR |
| 46 | ><TR |
| 47 | ><TD |
| 48 | WIDTH="25%" |
| 49 | BGCOLOR="#C00000" |
| 50 | ALIGN="left" |
| 51 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 52 | HREF="libxml-valid.html" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 53 | ><FONT |
| 54 | COLOR="#FFFFFF" |
| 55 | SIZE="3" |
| 56 | ><B |
| 57 | ><<< Previous Page</B |
| 58 | ></FONT |
| 59 | ></A |
| 60 | ></TD |
| 61 | ><TD |
| 62 | WIDTH="25%" |
| 63 | BGCOLOR="#0000C0" |
| 64 | ALIGN="center" |
| 65 | ><FONT |
| 66 | COLOR="#FFFFFF" |
| 67 | SIZE="3" |
| 68 | ><B |
| 69 | ><A |
| 70 | HREF="book1.html" |
| 71 | ><FONT |
| 72 | COLOR="#FFFFFF" |
| 73 | SIZE="3" |
| 74 | ><B |
| 75 | >Home</B |
| 76 | ></FONT |
| 77 | ></A |
| 78 | ></B |
| 79 | ></FONT |
| 80 | ></TD |
| 81 | ><TD |
| 82 | WIDTH="25%" |
| 83 | BGCOLOR="#00C000" |
| 84 | ALIGN="center" |
| 85 | ><FONT |
| 86 | COLOR="#FFFFFF" |
| 87 | SIZE="3" |
| 88 | ><B |
| 89 | ><A |
| 90 | HREF="libxml-lib.html" |
| 91 | ><FONT |
| 92 | COLOR="#FFFFFF" |
| 93 | SIZE="3" |
| 94 | ><B |
| 95 | >Up</B |
| 96 | ></FONT |
| 97 | ></A |
| 98 | ></B |
| 99 | ></FONT |
| 100 | ></TD |
| 101 | ><TD |
| 102 | WIDTH="25%" |
| 103 | BGCOLOR="#C00000" |
| 104 | ALIGN="right" |
| 105 | ><A |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 106 | HREF="libxml-xmlerror.html" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 107 | ><FONT |
| 108 | COLOR="#FFFFFF" |
| 109 | SIZE="3" |
| 110 | ><B |
| 111 | >Next Page >>></B |
| 112 | ></FONT |
| 113 | ></A |
| 114 | ></TD |
| 115 | ></TR |
| 116 | ></TABLE |
| 117 | ></DIV |
| 118 | ><H1 |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 119 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 120 | NAME="LIBXML-URI" |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 121 | >uri</A |
| 122 | ></H1 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 123 | ><DIV |
| 124 | CLASS="REFNAMEDIV" |
| 125 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 126 | NAME="AEN10365" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 127 | ></A |
| 128 | ><H2 |
| 129 | >Name</H2 |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 130 | >uri -- </DIV |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 131 | ><DIV |
| 132 | CLASS="REFSYNOPSISDIV" |
| 133 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 134 | NAME="AEN10368" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 135 | ></A |
| 136 | ><H2 |
| 137 | >Synopsis</H2 |
| 138 | ><TABLE |
| 139 | BORDER="0" |
| 140 | BGCOLOR="#D6E8FF" |
| 141 | WIDTH="100%" |
| 142 | CELLPADDING="6" |
| 143 | ><TR |
| 144 | ><TD |
| 145 | ><PRE |
| 146 | CLASS="SYNOPSIS" |
| 147 | > |
| 148 | |
| 149 | struct <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 150 | HREF="libxml-uri.html#XMLURI" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 151 | >xmlURI</A |
| 152 | >; |
| 153 | typedef <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 154 | HREF="libxml-uri.html#XMLURIPTR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 155 | >xmlURIPtr</A |
| 156 | >; |
| 157 | <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 158 | HREF="libxml-uri.html#XMLURIPTR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 159 | >xmlURIPtr</A |
| 160 | > <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 161 | HREF="libxml-uri.html#XMLCREATEURI" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 162 | >xmlCreateURI</A |
| 163 | > (void); |
| 164 | <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 165 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 166 | >xmlChar</A |
| 167 | >* <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 168 | HREF="libxml-uri.html#XMLBUILDURI" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 169 | >xmlBuildURI</A |
| 170 | > (const <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 171 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 172 | >xmlChar</A |
| 173 | > *URI, |
| 174 | const <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 175 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 176 | >xmlChar</A |
| 177 | > *base); |
| 178 | <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 179 | HREF="libxml-uri.html#XMLURIPTR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 180 | >xmlURIPtr</A |
| 181 | > <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 182 | HREF="libxml-uri.html#XMLPARSEURI" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 183 | >xmlParseURI</A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 184 | > (const char *str); |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 185 | int <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 186 | HREF="libxml-uri.html#XMLPARSEURIREFERENCE" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 187 | >xmlParseURIReference</A |
| 188 | > (<A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 189 | HREF="libxml-uri.html#XMLURIPTR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 190 | >xmlURIPtr</A |
| 191 | > uri, |
| 192 | const char *str); |
| 193 | <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 194 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 195 | >xmlChar</A |
| 196 | >* <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 197 | HREF="libxml-uri.html#XMLSAVEURI" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 198 | >xmlSaveUri</A |
| 199 | > (<A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 200 | HREF="libxml-uri.html#XMLURIPTR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 201 | >xmlURIPtr</A |
| 202 | > uri); |
| 203 | void <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 204 | HREF="libxml-uri.html#XMLPRINTURI" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 205 | >xmlPrintURI</A |
| 206 | > (<GTKDOCLINK |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 207 | HREF="FILE-CAPS" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 208 | >FILE</GTKDOCLINK |
| 209 | > *stream, |
| 210 | <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 211 | HREF="libxml-uri.html#XMLURIPTR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 212 | >xmlURIPtr</A |
| 213 | > uri); |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 214 | <A |
| 215 | HREF="libxml-tree.html#XMLCHAR" |
| 216 | >xmlChar</A |
| 217 | >* <A |
| 218 | HREF="libxml-uri.html#XMLURIESCAPESTR" |
| 219 | >xmlURIEscapeStr</A |
| 220 | > (const <A |
| 221 | HREF="libxml-tree.html#XMLCHAR" |
| 222 | >xmlChar</A |
| 223 | > *str, |
| 224 | const <A |
| 225 | HREF="libxml-tree.html#XMLCHAR" |
| 226 | >xmlChar</A |
| 227 | > *list); |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 228 | char* <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 229 | HREF="libxml-uri.html#XMLURIUNESCAPESTRING" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 230 | >xmlURIUnescapeString</A |
| 231 | > (const char *str, |
| 232 | int len, |
| 233 | char *target); |
| 234 | int <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 235 | HREF="libxml-uri.html#XMLNORMALIZEURIPATH" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 236 | >xmlNormalizeURIPath</A |
| 237 | > (char *path); |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 238 | <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 239 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 240 | >xmlChar</A |
| 241 | >* <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 242 | HREF="libxml-uri.html#XMLURIESCAPE" |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 243 | >xmlURIEscape</A |
| 244 | > (const <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 245 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 246 | >xmlChar</A |
| 247 | > *str); |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 248 | void <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 249 | HREF="libxml-uri.html#XMLFREEURI" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 250 | >xmlFreeURI</A |
| 251 | > (<A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 252 | HREF="libxml-uri.html#XMLURIPTR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 253 | >xmlURIPtr</A |
| 254 | > uri);</PRE |
| 255 | ></TD |
| 256 | ></TR |
| 257 | ></TABLE |
| 258 | ></DIV |
| 259 | ><DIV |
| 260 | CLASS="REFSECT1" |
| 261 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 262 | NAME="AEN10400" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 263 | ></A |
| 264 | ><H2 |
| 265 | >Description</H2 |
| 266 | ><P |
| 267 | ></P |
| 268 | ></DIV |
| 269 | ><DIV |
| 270 | CLASS="REFSECT1" |
| 271 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 272 | NAME="AEN10403" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 273 | ></A |
| 274 | ><H2 |
| 275 | >Details</H2 |
| 276 | ><DIV |
| 277 | CLASS="REFSECT2" |
| 278 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 279 | NAME="AEN10405" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 280 | ></A |
| 281 | ><H3 |
| 282 | ><A |
| 283 | NAME="XMLURI" |
| 284 | ></A |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 285 | >struct xmlURI</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 286 | ><TABLE |
| 287 | BORDER="0" |
| 288 | BGCOLOR="#D6E8FF" |
| 289 | WIDTH="100%" |
| 290 | CELLPADDING="6" |
| 291 | ><TR |
| 292 | ><TD |
| 293 | ><PRE |
| 294 | CLASS="PROGRAMLISTING" |
| 295 | >struct xmlURI { |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 296 | char *scheme; /* the URI scheme */ |
| 297 | char *opaque; /* opaque part */ |
| 298 | char *authority; /* the authority part */ |
| 299 | char *server; /* the server part */ |
| 300 | char *user; /* the user part */ |
| 301 | int port; /* the port number */ |
| 302 | char *path; /* the path string */ |
| 303 | char *query; /* the query string */ |
| 304 | char *fragment; /* the fragment identifier */ |
| 305 | int cleanup; /* parsing potentially unclean URI */ |
| 306 | };</PRE |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 307 | ></TD |
| 308 | ></TR |
| 309 | ></TABLE |
| 310 | ><P |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 311 | >A parsed URI reference. This is a struct containing the various fields |
Daniel Veillard | 1927409 | 2002-03-25 16:48:03 +0000 | [diff] [blame] | 312 | as described in RFC 2396 but separated for further processing.</P |
Daniel Veillard | e7ead2d | 2001-08-22 23:44:09 +0000 | [diff] [blame] | 313 | ><P |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 314 | ></P |
| 315 | ></DIV |
| 316 | ><HR><DIV |
| 317 | CLASS="REFSECT2" |
| 318 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 319 | NAME="AEN10411" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 320 | ></A |
| 321 | ><H3 |
| 322 | ><A |
| 323 | NAME="XMLURIPTR" |
| 324 | ></A |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 325 | >xmlURIPtr</H3 |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 326 | ><TABLE |
| 327 | BORDER="0" |
| 328 | BGCOLOR="#D6E8FF" |
| 329 | WIDTH="100%" |
| 330 | CELLPADDING="6" |
| 331 | ><TR |
| 332 | ><TD |
| 333 | ><PRE |
| 334 | CLASS="PROGRAMLISTING" |
| 335 | >typedef xmlURI *xmlURIPtr;</PRE |
| 336 | ></TD |
| 337 | ></TR |
| 338 | ></TABLE |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 339 | ><P |
| 340 | ></P |
| 341 | ></DIV |
| 342 | ><HR><DIV |
| 343 | CLASS="REFSECT2" |
| 344 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 345 | NAME="AEN10416" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 346 | ></A |
| 347 | ><H3 |
| 348 | ><A |
| 349 | NAME="XMLCREATEURI" |
| 350 | ></A |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 351 | >xmlCreateURI ()</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 352 | ><TABLE |
| 353 | BORDER="0" |
| 354 | BGCOLOR="#D6E8FF" |
| 355 | WIDTH="100%" |
| 356 | CELLPADDING="6" |
| 357 | ><TR |
| 358 | ><TD |
| 359 | ><PRE |
| 360 | CLASS="PROGRAMLISTING" |
| 361 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 362 | HREF="libxml-uri.html#XMLURIPTR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 363 | >xmlURIPtr</A |
| 364 | > xmlCreateURI (void);</PRE |
| 365 | ></TD |
| 366 | ></TR |
| 367 | ></TABLE |
| 368 | ><P |
| 369 | >Simply creates an empty xmlURI</P |
| 370 | ><P |
| 371 | ></P |
| 372 | ><DIV |
| 373 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 374 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 375 | NAME="AEN10423" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 376 | ></A |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 377 | ><P |
| 378 | ></P |
| 379 | ><TABLE |
| 380 | BORDER="0" |
| 381 | WIDTH="100%" |
| 382 | BGCOLOR="#FFD0D0" |
| 383 | CELLSPACING="0" |
| 384 | CELLPADDING="4" |
| 385 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 386 | ><TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 387 | ><TR |
| 388 | ><TD |
| 389 | WIDTH="20%" |
| 390 | ALIGN="RIGHT" |
| 391 | VALIGN="TOP" |
| 392 | ><I |
| 393 | CLASS="EMPHASIS" |
| 394 | >Returns</I |
| 395 | > :</TD |
| 396 | ><TD |
| 397 | WIDTH="80%" |
| 398 | ALIGN="LEFT" |
| 399 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 400 | >the new structure or NULL in case of error</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 401 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 402 | ></TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 403 | ></TABLE |
| 404 | ><P |
| 405 | ></P |
| 406 | ></DIV |
| 407 | ></DIV |
| 408 | ><HR><DIV |
| 409 | CLASS="REFSECT2" |
| 410 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 411 | NAME="AEN10432" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 412 | ></A |
| 413 | ><H3 |
| 414 | ><A |
| 415 | NAME="XMLBUILDURI" |
| 416 | ></A |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 417 | >xmlBuildURI ()</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 418 | ><TABLE |
| 419 | BORDER="0" |
| 420 | BGCOLOR="#D6E8FF" |
| 421 | WIDTH="100%" |
| 422 | CELLPADDING="6" |
| 423 | ><TR |
| 424 | ><TD |
| 425 | ><PRE |
| 426 | CLASS="PROGRAMLISTING" |
| 427 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 428 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 429 | >xmlChar</A |
| 430 | >* xmlBuildURI (const <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 431 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 432 | >xmlChar</A |
| 433 | > *URI, |
| 434 | const <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 435 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 436 | >xmlChar</A |
| 437 | > *base);</PRE |
| 438 | ></TD |
| 439 | ></TR |
| 440 | ></TABLE |
| 441 | ><P |
| 442 | >Computes he final URI of the reference done by checking that |
| 443 | the given URI is valid, and building the final URI using the |
| 444 | base URI. This is processed according to section 5.2 of the |
| 445 | RFC 2396</P |
| 446 | ><P |
| 447 | >5.2. Resolving Relative References to Absolute Form</P |
| 448 | ><P |
| 449 | ></P |
| 450 | ><DIV |
| 451 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 452 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 453 | NAME="AEN10442" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 454 | ></A |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 455 | ><P |
| 456 | ></P |
| 457 | ><TABLE |
| 458 | BORDER="0" |
| 459 | WIDTH="100%" |
| 460 | BGCOLOR="#FFD0D0" |
| 461 | CELLSPACING="0" |
| 462 | CELLPADDING="4" |
| 463 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 464 | ><TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 465 | ><TR |
| 466 | ><TD |
| 467 | WIDTH="20%" |
| 468 | ALIGN="RIGHT" |
| 469 | VALIGN="TOP" |
| 470 | ><TT |
| 471 | CLASS="PARAMETER" |
| 472 | ><I |
| 473 | >URI</I |
| 474 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 475 | > :</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 476 | ><TD |
| 477 | WIDTH="80%" |
| 478 | ALIGN="LEFT" |
| 479 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 480 | > the URI instance found in the document</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 481 | ></TR |
| 482 | ><TR |
| 483 | ><TD |
| 484 | WIDTH="20%" |
| 485 | ALIGN="RIGHT" |
| 486 | VALIGN="TOP" |
| 487 | ><TT |
| 488 | CLASS="PARAMETER" |
| 489 | ><I |
| 490 | >base</I |
| 491 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 492 | > :</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 493 | ><TD |
| 494 | WIDTH="80%" |
| 495 | ALIGN="LEFT" |
| 496 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 497 | > the base value</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 498 | ></TR |
| 499 | ><TR |
| 500 | ><TD |
| 501 | WIDTH="20%" |
| 502 | ALIGN="RIGHT" |
| 503 | VALIGN="TOP" |
| 504 | ><I |
| 505 | CLASS="EMPHASIS" |
| 506 | >Returns</I |
| 507 | > :</TD |
| 508 | ><TD |
| 509 | WIDTH="80%" |
| 510 | ALIGN="LEFT" |
| 511 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 512 | >a new URI string (to be freed by the caller) or NULL in case |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 513 | of error.</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 514 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 515 | ></TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 516 | ></TABLE |
| 517 | ><P |
| 518 | ></P |
| 519 | ></DIV |
| 520 | ></DIV |
| 521 | ><HR><DIV |
| 522 | CLASS="REFSECT2" |
| 523 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 524 | NAME="AEN10459" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 525 | ></A |
| 526 | ><H3 |
| 527 | ><A |
| 528 | NAME="XMLPARSEURI" |
| 529 | ></A |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 530 | >xmlParseURI ()</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 531 | ><TABLE |
| 532 | BORDER="0" |
| 533 | BGCOLOR="#D6E8FF" |
| 534 | WIDTH="100%" |
| 535 | CELLPADDING="6" |
| 536 | ><TR |
| 537 | ><TD |
| 538 | ><PRE |
| 539 | CLASS="PROGRAMLISTING" |
| 540 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 541 | HREF="libxml-uri.html#XMLURIPTR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 542 | >xmlURIPtr</A |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 543 | > xmlParseURI (const char *str);</PRE |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 544 | ></TD |
| 545 | ></TR |
| 546 | ></TABLE |
| 547 | ><P |
| 548 | >Parse an URI </P |
| 549 | ><P |
| 550 | >URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]</P |
| 551 | ><P |
| 552 | ></P |
| 553 | ><DIV |
| 554 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 555 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 556 | NAME="AEN10467" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 557 | ></A |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 558 | ><P |
| 559 | ></P |
| 560 | ><TABLE |
| 561 | BORDER="0" |
| 562 | WIDTH="100%" |
| 563 | BGCOLOR="#FFD0D0" |
| 564 | CELLSPACING="0" |
| 565 | CELLPADDING="4" |
| 566 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 567 | ><TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 568 | ><TR |
| 569 | ><TD |
| 570 | WIDTH="20%" |
| 571 | ALIGN="RIGHT" |
| 572 | VALIGN="TOP" |
| 573 | ><TT |
| 574 | CLASS="PARAMETER" |
| 575 | ><I |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 576 | >str</I |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 577 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 578 | > :</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 579 | ><TD |
| 580 | WIDTH="80%" |
| 581 | ALIGN="LEFT" |
| 582 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 583 | > the URI string to analyze</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 584 | ></TR |
| 585 | ><TR |
| 586 | ><TD |
| 587 | WIDTH="20%" |
| 588 | ALIGN="RIGHT" |
| 589 | VALIGN="TOP" |
| 590 | ><I |
| 591 | CLASS="EMPHASIS" |
| 592 | >Returns</I |
| 593 | > :</TD |
| 594 | ><TD |
| 595 | WIDTH="80%" |
| 596 | ALIGN="LEFT" |
| 597 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 598 | >a newly build xmlURIPtr or NULL in case of error</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 599 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 600 | ></TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 601 | ></TABLE |
| 602 | ><P |
| 603 | ></P |
| 604 | ></DIV |
| 605 | ></DIV |
| 606 | ><HR><DIV |
| 607 | CLASS="REFSECT2" |
| 608 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 609 | NAME="AEN10480" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 610 | ></A |
| 611 | ><H3 |
| 612 | ><A |
| 613 | NAME="XMLPARSEURIREFERENCE" |
| 614 | ></A |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 615 | >xmlParseURIReference ()</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 616 | ><TABLE |
| 617 | BORDER="0" |
| 618 | BGCOLOR="#D6E8FF" |
| 619 | WIDTH="100%" |
| 620 | CELLPADDING="6" |
| 621 | ><TR |
| 622 | ><TD |
| 623 | ><PRE |
| 624 | CLASS="PROGRAMLISTING" |
| 625 | >int xmlParseURIReference (<A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 626 | HREF="libxml-uri.html#XMLURIPTR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 627 | >xmlURIPtr</A |
| 628 | > uri, |
| 629 | const char *str);</PRE |
| 630 | ></TD |
| 631 | ></TR |
| 632 | ></TABLE |
| 633 | ><P |
| 634 | >Parse an URI reference string and fills in the appropriate fields |
| 635 | of the <TT |
| 636 | CLASS="PARAMETER" |
| 637 | ><I |
| 638 | >uri</I |
| 639 | ></TT |
| 640 | > structure</P |
| 641 | ><P |
| 642 | >URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]</P |
| 643 | ><P |
| 644 | ></P |
| 645 | ><DIV |
| 646 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 647 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 648 | NAME="AEN10489" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 649 | ></A |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 650 | ><P |
| 651 | ></P |
| 652 | ><TABLE |
| 653 | BORDER="0" |
| 654 | WIDTH="100%" |
| 655 | BGCOLOR="#FFD0D0" |
| 656 | CELLSPACING="0" |
| 657 | CELLPADDING="4" |
| 658 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 659 | ><TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 660 | ><TR |
| 661 | ><TD |
| 662 | WIDTH="20%" |
| 663 | ALIGN="RIGHT" |
| 664 | VALIGN="TOP" |
| 665 | ><TT |
| 666 | CLASS="PARAMETER" |
| 667 | ><I |
| 668 | >uri</I |
| 669 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 670 | > :</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 671 | ><TD |
| 672 | WIDTH="80%" |
| 673 | ALIGN="LEFT" |
| 674 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 675 | > pointer to an URI structure</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 676 | ></TR |
| 677 | ><TR |
| 678 | ><TD |
| 679 | WIDTH="20%" |
| 680 | ALIGN="RIGHT" |
| 681 | VALIGN="TOP" |
| 682 | ><TT |
| 683 | CLASS="PARAMETER" |
| 684 | ><I |
| 685 | >str</I |
| 686 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 687 | > :</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 688 | ><TD |
| 689 | WIDTH="80%" |
| 690 | ALIGN="LEFT" |
| 691 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 692 | > the string to analyze</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 693 | ></TR |
| 694 | ><TR |
| 695 | ><TD |
| 696 | WIDTH="20%" |
| 697 | ALIGN="RIGHT" |
| 698 | VALIGN="TOP" |
| 699 | ><I |
| 700 | CLASS="EMPHASIS" |
| 701 | >Returns</I |
| 702 | > :</TD |
| 703 | ><TD |
| 704 | WIDTH="80%" |
| 705 | ALIGN="LEFT" |
| 706 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 707 | >0 or the error code</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 708 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 709 | ></TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 710 | ></TABLE |
| 711 | ><P |
| 712 | ></P |
| 713 | ></DIV |
| 714 | ></DIV |
| 715 | ><HR><DIV |
| 716 | CLASS="REFSECT2" |
| 717 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 718 | NAME="AEN10506" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 719 | ></A |
| 720 | ><H3 |
| 721 | ><A |
| 722 | NAME="XMLSAVEURI" |
| 723 | ></A |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 724 | >xmlSaveUri ()</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 725 | ><TABLE |
| 726 | BORDER="0" |
| 727 | BGCOLOR="#D6E8FF" |
| 728 | WIDTH="100%" |
| 729 | CELLPADDING="6" |
| 730 | ><TR |
| 731 | ><TD |
| 732 | ><PRE |
| 733 | CLASS="PROGRAMLISTING" |
| 734 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 735 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 736 | >xmlChar</A |
| 737 | >* xmlSaveUri (<A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 738 | HREF="libxml-uri.html#XMLURIPTR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 739 | >xmlURIPtr</A |
| 740 | > uri);</PRE |
| 741 | ></TD |
| 742 | ></TR |
| 743 | ></TABLE |
| 744 | ><P |
| 745 | >Save the URI as an escaped string</P |
| 746 | ><P |
| 747 | ></P |
| 748 | ><DIV |
| 749 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 750 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 751 | NAME="AEN10514" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 752 | ></A |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 753 | ><P |
| 754 | ></P |
| 755 | ><TABLE |
| 756 | BORDER="0" |
| 757 | WIDTH="100%" |
| 758 | BGCOLOR="#FFD0D0" |
| 759 | CELLSPACING="0" |
| 760 | CELLPADDING="4" |
| 761 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 762 | ><TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 763 | ><TR |
| 764 | ><TD |
| 765 | WIDTH="20%" |
| 766 | ALIGN="RIGHT" |
| 767 | VALIGN="TOP" |
| 768 | ><TT |
| 769 | CLASS="PARAMETER" |
| 770 | ><I |
| 771 | >uri</I |
| 772 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 773 | > :</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 774 | ><TD |
| 775 | WIDTH="80%" |
| 776 | ALIGN="LEFT" |
| 777 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 778 | > pointer to an xmlURI</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 779 | ></TR |
| 780 | ><TR |
| 781 | ><TD |
| 782 | WIDTH="20%" |
| 783 | ALIGN="RIGHT" |
| 784 | VALIGN="TOP" |
| 785 | ><I |
| 786 | CLASS="EMPHASIS" |
| 787 | >Returns</I |
| 788 | > :</TD |
| 789 | ><TD |
| 790 | WIDTH="80%" |
| 791 | ALIGN="LEFT" |
| 792 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 793 | >a new string (to be deallocated by caller)</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 794 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 795 | ></TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 796 | ></TABLE |
| 797 | ><P |
| 798 | ></P |
| 799 | ></DIV |
| 800 | ></DIV |
| 801 | ><HR><DIV |
| 802 | CLASS="REFSECT2" |
| 803 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 804 | NAME="AEN10527" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 805 | ></A |
| 806 | ><H3 |
| 807 | ><A |
| 808 | NAME="XMLPRINTURI" |
| 809 | ></A |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 810 | >xmlPrintURI ()</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 811 | ><TABLE |
| 812 | BORDER="0" |
| 813 | BGCOLOR="#D6E8FF" |
| 814 | WIDTH="100%" |
| 815 | CELLPADDING="6" |
| 816 | ><TR |
| 817 | ><TD |
| 818 | ><PRE |
| 819 | CLASS="PROGRAMLISTING" |
| 820 | >void xmlPrintURI (<GTKDOCLINK |
Daniel Veillard | 503b893 | 2001-01-05 06:36:31 +0000 | [diff] [blame] | 821 | HREF="FILE-CAPS" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 822 | >FILE</GTKDOCLINK |
| 823 | > *stream, |
| 824 | <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 825 | HREF="libxml-uri.html#XMLURIPTR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 826 | >xmlURIPtr</A |
| 827 | > uri);</PRE |
| 828 | ></TD |
| 829 | ></TR |
| 830 | ></TABLE |
| 831 | ><P |
| 832 | >Prints the URI in the stream <TT |
| 833 | CLASS="PARAMETER" |
| 834 | ><I |
| 835 | >steam</I |
| 836 | ></TT |
| 837 | >.</P |
| 838 | ><P |
| 839 | ></P |
| 840 | ><DIV |
| 841 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 842 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 843 | NAME="AEN10536" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 844 | ></A |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 845 | ><P |
| 846 | ></P |
| 847 | ><TABLE |
| 848 | BORDER="0" |
| 849 | WIDTH="100%" |
| 850 | BGCOLOR="#FFD0D0" |
| 851 | CELLSPACING="0" |
| 852 | CELLPADDING="4" |
| 853 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 854 | ><TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 855 | ><TR |
| 856 | ><TD |
| 857 | WIDTH="20%" |
| 858 | ALIGN="RIGHT" |
| 859 | VALIGN="TOP" |
| 860 | ><TT |
| 861 | CLASS="PARAMETER" |
| 862 | ><I |
| 863 | >stream</I |
| 864 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 865 | > :</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 866 | ><TD |
| 867 | WIDTH="80%" |
| 868 | ALIGN="LEFT" |
| 869 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 870 | > a FILE* for the output</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 871 | ></TR |
| 872 | ><TR |
| 873 | ><TD |
| 874 | WIDTH="20%" |
| 875 | ALIGN="RIGHT" |
| 876 | VALIGN="TOP" |
| 877 | ><TT |
| 878 | CLASS="PARAMETER" |
| 879 | ><I |
| 880 | >uri</I |
| 881 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 882 | > :</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 883 | ><TD |
| 884 | WIDTH="80%" |
| 885 | ALIGN="LEFT" |
| 886 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 887 | > pointer to an xmlURI</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 888 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 889 | ></TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 890 | ></TABLE |
| 891 | ><P |
| 892 | ></P |
| 893 | ></DIV |
| 894 | ></DIV |
| 895 | ><HR><DIV |
| 896 | CLASS="REFSECT2" |
| 897 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 898 | NAME="AEN10549" |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 899 | ></A |
| 900 | ><H3 |
| 901 | ><A |
| 902 | NAME="XMLURIESCAPESTR" |
| 903 | ></A |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 904 | >xmlURIEscapeStr ()</H3 |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 905 | ><TABLE |
| 906 | BORDER="0" |
| 907 | BGCOLOR="#D6E8FF" |
| 908 | WIDTH="100%" |
| 909 | CELLPADDING="6" |
| 910 | ><TR |
| 911 | ><TD |
| 912 | ><PRE |
| 913 | CLASS="PROGRAMLISTING" |
| 914 | ><A |
| 915 | HREF="libxml-tree.html#XMLCHAR" |
| 916 | >xmlChar</A |
| 917 | >* xmlURIEscapeStr (const <A |
| 918 | HREF="libxml-tree.html#XMLCHAR" |
| 919 | >xmlChar</A |
| 920 | > *str, |
| 921 | const <A |
| 922 | HREF="libxml-tree.html#XMLCHAR" |
| 923 | >xmlChar</A |
| 924 | > *list);</PRE |
| 925 | ></TD |
| 926 | ></TR |
| 927 | ></TABLE |
| 928 | ><P |
| 929 | >This routine escapes a string to hex, ignoring reserved characters (a-z) |
| 930 | and the characters in the exception list.</P |
| 931 | ><P |
| 932 | ></P |
| 933 | ><DIV |
| 934 | CLASS="INFORMALTABLE" |
| 935 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 936 | NAME="AEN10558" |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 937 | ></A |
| 938 | ><P |
| 939 | ></P |
| 940 | ><TABLE |
| 941 | BORDER="0" |
| 942 | WIDTH="100%" |
| 943 | BGCOLOR="#FFD0D0" |
| 944 | CELLSPACING="0" |
| 945 | CELLPADDING="4" |
| 946 | CLASS="CALSTABLE" |
| 947 | ><TBODY |
| 948 | ><TR |
| 949 | ><TD |
| 950 | WIDTH="20%" |
| 951 | ALIGN="RIGHT" |
| 952 | VALIGN="TOP" |
| 953 | ><TT |
| 954 | CLASS="PARAMETER" |
| 955 | ><I |
| 956 | >str</I |
| 957 | ></TT |
| 958 | > :</TD |
| 959 | ><TD |
| 960 | WIDTH="80%" |
| 961 | ALIGN="LEFT" |
| 962 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 963 | > string to escape</TD |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 964 | ></TR |
| 965 | ><TR |
| 966 | ><TD |
| 967 | WIDTH="20%" |
| 968 | ALIGN="RIGHT" |
| 969 | VALIGN="TOP" |
| 970 | ><TT |
| 971 | CLASS="PARAMETER" |
| 972 | ><I |
| 973 | >list</I |
| 974 | ></TT |
| 975 | > :</TD |
| 976 | ><TD |
| 977 | WIDTH="80%" |
| 978 | ALIGN="LEFT" |
| 979 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 980 | > exception list string of chars not to escape</TD |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 981 | ></TR |
| 982 | ><TR |
| 983 | ><TD |
| 984 | WIDTH="20%" |
| 985 | ALIGN="RIGHT" |
| 986 | VALIGN="TOP" |
| 987 | ><I |
| 988 | CLASS="EMPHASIS" |
| 989 | >Returns</I |
| 990 | > :</TD |
| 991 | ><TD |
| 992 | WIDTH="80%" |
| 993 | ALIGN="LEFT" |
| 994 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 995 | >a new escaped string or NULL in case of error.</TD |
Daniel Veillard | 4ec885a | 2001-06-17 10:31:07 +0000 | [diff] [blame] | 996 | ></TR |
| 997 | ></TBODY |
| 998 | ></TABLE |
| 999 | ><P |
| 1000 | ></P |
| 1001 | ></DIV |
| 1002 | ></DIV |
| 1003 | ><HR><DIV |
| 1004 | CLASS="REFSECT2" |
| 1005 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 1006 | NAME="AEN10575" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1007 | ></A |
| 1008 | ><H3 |
| 1009 | ><A |
| 1010 | NAME="XMLURIUNESCAPESTRING" |
| 1011 | ></A |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 1012 | >xmlURIUnescapeString ()</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1013 | ><TABLE |
| 1014 | BORDER="0" |
| 1015 | BGCOLOR="#D6E8FF" |
| 1016 | WIDTH="100%" |
| 1017 | CELLPADDING="6" |
| 1018 | ><TR |
| 1019 | ><TD |
| 1020 | ><PRE |
| 1021 | CLASS="PROGRAMLISTING" |
| 1022 | >char* xmlURIUnescapeString (const char *str, |
| 1023 | int len, |
| 1024 | char *target);</PRE |
| 1025 | ></TD |
| 1026 | ></TR |
| 1027 | ></TABLE |
| 1028 | ><P |
| 1029 | >Unescaping routine, does not do validity checks ! |
| 1030 | Output is direct unsigned char translation of <TT |
| 1031 | CLASS="LITERAL" |
| 1032 | >XX</TT |
| 1033 | > values (no encoding)</P |
| 1034 | ><P |
| 1035 | ></P |
| 1036 | ><DIV |
| 1037 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1038 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 1039 | NAME="AEN10582" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1040 | ></A |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1041 | ><P |
| 1042 | ></P |
| 1043 | ><TABLE |
| 1044 | BORDER="0" |
| 1045 | WIDTH="100%" |
| 1046 | BGCOLOR="#FFD0D0" |
| 1047 | CELLSPACING="0" |
| 1048 | CELLPADDING="4" |
| 1049 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1050 | ><TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1051 | ><TR |
| 1052 | ><TD |
| 1053 | WIDTH="20%" |
| 1054 | ALIGN="RIGHT" |
| 1055 | VALIGN="TOP" |
| 1056 | ><TT |
| 1057 | CLASS="PARAMETER" |
| 1058 | ><I |
| 1059 | >str</I |
| 1060 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1061 | > :</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1062 | ><TD |
| 1063 | WIDTH="80%" |
| 1064 | ALIGN="LEFT" |
| 1065 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 1066 | > the string to unescape</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1067 | ></TR |
| 1068 | ><TR |
| 1069 | ><TD |
| 1070 | WIDTH="20%" |
| 1071 | ALIGN="RIGHT" |
| 1072 | VALIGN="TOP" |
| 1073 | ><TT |
| 1074 | CLASS="PARAMETER" |
| 1075 | ><I |
| 1076 | >len</I |
| 1077 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1078 | > :</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1079 | ><TD |
| 1080 | WIDTH="80%" |
| 1081 | ALIGN="LEFT" |
| 1082 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 1083 | > the length in bytes to unescape (or <= 0 to indicate full string)</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1084 | ></TR |
| 1085 | ><TR |
| 1086 | ><TD |
| 1087 | WIDTH="20%" |
| 1088 | ALIGN="RIGHT" |
| 1089 | VALIGN="TOP" |
| 1090 | ><TT |
| 1091 | CLASS="PARAMETER" |
| 1092 | ><I |
| 1093 | >target</I |
| 1094 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1095 | > :</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1096 | ><TD |
| 1097 | WIDTH="80%" |
| 1098 | ALIGN="LEFT" |
| 1099 | VALIGN="TOP" |
Daniel Veillard | cbaf399 | 2001-12-31 16:16:02 +0000 | [diff] [blame] | 1100 | > optional destination buffer</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1101 | ></TR |
| 1102 | ><TR |
| 1103 | ><TD |
| 1104 | WIDTH="20%" |
| 1105 | ALIGN="RIGHT" |
| 1106 | VALIGN="TOP" |
| 1107 | ><I |
| 1108 | CLASS="EMPHASIS" |
| 1109 | >Returns</I |
| 1110 | > :</TD |
| 1111 | ><TD |
| 1112 | WIDTH="80%" |
| 1113 | ALIGN="LEFT" |
| 1114 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 1115 | >an copy of the string, but unescaped</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1116 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1117 | ></TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1118 | ></TABLE |
| 1119 | ><P |
| 1120 | ></P |
| 1121 | ></DIV |
| 1122 | ></DIV |
| 1123 | ><HR><DIV |
| 1124 | CLASS="REFSECT2" |
| 1125 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 1126 | NAME="AEN10603" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1127 | ></A |
| 1128 | ><H3 |
| 1129 | ><A |
| 1130 | NAME="XMLNORMALIZEURIPATH" |
| 1131 | ></A |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 1132 | >xmlNormalizeURIPath ()</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1133 | ><TABLE |
| 1134 | BORDER="0" |
| 1135 | BGCOLOR="#D6E8FF" |
| 1136 | WIDTH="100%" |
| 1137 | CELLPADDING="6" |
| 1138 | ><TR |
| 1139 | ><TD |
| 1140 | ><PRE |
| 1141 | CLASS="PROGRAMLISTING" |
| 1142 | >int xmlNormalizeURIPath (char *path);</PRE |
| 1143 | ></TD |
| 1144 | ></TR |
| 1145 | ></TABLE |
| 1146 | ><P |
Daniel Veillard | d194dd2 | 2001-02-14 10:37:43 +0000 | [diff] [blame] | 1147 | >Applies the 5 normalization steps to a path string--that is, RFC 2396 |
| 1148 | Section 5.2, steps 6.c through 6.g.</P |
| 1149 | ><P |
| 1150 | >Normalization occurs directly on the string, no new allocation is done</P |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1151 | ><P |
| 1152 | ></P |
| 1153 | ><DIV |
| 1154 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1155 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 1156 | NAME="AEN10610" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1157 | ></A |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1158 | ><P |
| 1159 | ></P |
| 1160 | ><TABLE |
| 1161 | BORDER="0" |
| 1162 | WIDTH="100%" |
| 1163 | BGCOLOR="#FFD0D0" |
| 1164 | CELLSPACING="0" |
| 1165 | CELLPADDING="4" |
| 1166 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1167 | ><TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1168 | ><TR |
| 1169 | ><TD |
| 1170 | WIDTH="20%" |
| 1171 | ALIGN="RIGHT" |
| 1172 | VALIGN="TOP" |
| 1173 | ><TT |
| 1174 | CLASS="PARAMETER" |
| 1175 | ><I |
| 1176 | >path</I |
| 1177 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1178 | > :</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1179 | ><TD |
| 1180 | WIDTH="80%" |
| 1181 | ALIGN="LEFT" |
| 1182 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 1183 | > pointer to the path string</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1184 | ></TR |
| 1185 | ><TR |
| 1186 | ><TD |
| 1187 | WIDTH="20%" |
| 1188 | ALIGN="RIGHT" |
| 1189 | VALIGN="TOP" |
| 1190 | ><I |
| 1191 | CLASS="EMPHASIS" |
| 1192 | >Returns</I |
| 1193 | > :</TD |
| 1194 | ><TD |
| 1195 | WIDTH="80%" |
| 1196 | ALIGN="LEFT" |
| 1197 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 1198 | >0 or an error code</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1199 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1200 | ></TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1201 | ></TABLE |
| 1202 | ><P |
| 1203 | ></P |
| 1204 | ></DIV |
| 1205 | ></DIV |
| 1206 | ><HR><DIV |
| 1207 | CLASS="REFSECT2" |
| 1208 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 1209 | NAME="AEN10623" |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1210 | ></A |
| 1211 | ><H3 |
| 1212 | ><A |
| 1213 | NAME="XMLURIESCAPE" |
| 1214 | ></A |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 1215 | >xmlURIEscape ()</H3 |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1216 | ><TABLE |
| 1217 | BORDER="0" |
| 1218 | BGCOLOR="#D6E8FF" |
| 1219 | WIDTH="100%" |
| 1220 | CELLPADDING="6" |
| 1221 | ><TR |
| 1222 | ><TD |
| 1223 | ><PRE |
| 1224 | CLASS="PROGRAMLISTING" |
| 1225 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 1226 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1227 | >xmlChar</A |
| 1228 | >* xmlURIEscape (const <A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 1229 | HREF="libxml-tree.html#XMLCHAR" |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1230 | >xmlChar</A |
| 1231 | > *str);</PRE |
| 1232 | ></TD |
| 1233 | ></TR |
| 1234 | ></TABLE |
| 1235 | ><P |
| 1236 | >Escaping routine, does not do validity checks ! |
| 1237 | It will try to escape the chars needing this, but this is heuristic |
| 1238 | based it's impossible to be sure.</P |
| 1239 | ><P |
| 1240 | ></P |
| 1241 | ><DIV |
| 1242 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1243 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 1244 | NAME="AEN10631" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1245 | ></A |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1246 | ><P |
| 1247 | ></P |
| 1248 | ><TABLE |
| 1249 | BORDER="0" |
| 1250 | WIDTH="100%" |
| 1251 | BGCOLOR="#FFD0D0" |
| 1252 | CELLSPACING="0" |
| 1253 | CELLPADDING="4" |
| 1254 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1255 | ><TBODY |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1256 | ><TR |
| 1257 | ><TD |
| 1258 | WIDTH="20%" |
| 1259 | ALIGN="RIGHT" |
| 1260 | VALIGN="TOP" |
| 1261 | ><TT |
| 1262 | CLASS="PARAMETER" |
| 1263 | ><I |
| 1264 | >str</I |
| 1265 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1266 | > :</TD |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1267 | ><TD |
| 1268 | WIDTH="80%" |
| 1269 | ALIGN="LEFT" |
| 1270 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 1271 | > the string of the URI to escape</TD |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1272 | ></TR |
| 1273 | ><TR |
| 1274 | ><TD |
| 1275 | WIDTH="20%" |
| 1276 | ALIGN="RIGHT" |
| 1277 | VALIGN="TOP" |
| 1278 | ><I |
| 1279 | CLASS="EMPHASIS" |
| 1280 | >Returns</I |
| 1281 | > :</TD |
| 1282 | ><TD |
| 1283 | WIDTH="80%" |
| 1284 | ALIGN="LEFT" |
| 1285 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 1286 | >an copy of the string, but escaped |
| 1287 | |
| 1288 | 25 May 2001 |
| 1289 | Uses xmlParseURI and xmlURIEscapeStr to try to escape correctly |
| 1290 | according to RFC2396. |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 1291 | - Carl Douglas</TD |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1292 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1293 | ></TBODY |
Daniel Veillard | 28929b2 | 2000-11-13 18:22:49 +0000 | [diff] [blame] | 1294 | ></TABLE |
| 1295 | ><P |
| 1296 | ></P |
| 1297 | ></DIV |
| 1298 | ></DIV |
| 1299 | ><HR><DIV |
| 1300 | CLASS="REFSECT2" |
| 1301 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 1302 | NAME="AEN10644" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1303 | ></A |
| 1304 | ><H3 |
| 1305 | ><A |
| 1306 | NAME="XMLFREEURI" |
| 1307 | ></A |
Daniel Veillard | af43f63 | 2002-03-08 15:05:20 +0000 | [diff] [blame] | 1308 | >xmlFreeURI ()</H3 |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1309 | ><TABLE |
| 1310 | BORDER="0" |
| 1311 | BGCOLOR="#D6E8FF" |
| 1312 | WIDTH="100%" |
| 1313 | CELLPADDING="6" |
| 1314 | ><TR |
| 1315 | ><TD |
| 1316 | ><PRE |
| 1317 | CLASS="PROGRAMLISTING" |
| 1318 | >void xmlFreeURI (<A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 1319 | HREF="libxml-uri.html#XMLURIPTR" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1320 | >xmlURIPtr</A |
| 1321 | > uri);</PRE |
| 1322 | ></TD |
| 1323 | ></TR |
| 1324 | ></TABLE |
| 1325 | ><P |
| 1326 | >Free up the xmlURI struct</P |
| 1327 | ><P |
| 1328 | ></P |
| 1329 | ><DIV |
| 1330 | CLASS="INFORMALTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1331 | ><A |
Daniel Veillard | a7084cd | 2002-04-15 17:12:47 +0000 | [diff] [blame] | 1332 | NAME="AEN10651" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1333 | ></A |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1334 | ><P |
| 1335 | ></P |
| 1336 | ><TABLE |
| 1337 | BORDER="0" |
| 1338 | WIDTH="100%" |
| 1339 | BGCOLOR="#FFD0D0" |
| 1340 | CELLSPACING="0" |
| 1341 | CELLPADDING="4" |
| 1342 | CLASS="CALSTABLE" |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1343 | ><TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1344 | ><TR |
| 1345 | ><TD |
| 1346 | WIDTH="20%" |
| 1347 | ALIGN="RIGHT" |
| 1348 | VALIGN="TOP" |
| 1349 | ><TT |
| 1350 | CLASS="PARAMETER" |
| 1351 | ><I |
| 1352 | >uri</I |
| 1353 | ></TT |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1354 | > :</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1355 | ><TD |
| 1356 | WIDTH="80%" |
| 1357 | ALIGN="LEFT" |
| 1358 | VALIGN="TOP" |
Daniel Veillard | ef90ba7 | 2001-12-07 14:24:22 +0000 | [diff] [blame] | 1359 | > pointer to an xmlURI</TD |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1360 | ></TR |
Daniel Veillard | bed7b05 | 2001-05-19 14:59:49 +0000 | [diff] [blame] | 1361 | ></TBODY |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1362 | ></TABLE |
| 1363 | ><P |
| 1364 | ></P |
| 1365 | ></DIV |
| 1366 | ></DIV |
| 1367 | ></DIV |
| 1368 | ><DIV |
| 1369 | CLASS="NAVFOOTER" |
| 1370 | ><BR |
| 1371 | CLEAR="all"><BR><TABLE |
| 1372 | WIDTH="100%" |
| 1373 | BORDER="0" |
| 1374 | BGCOLOR="#000000" |
| 1375 | CELLPADDING="1" |
| 1376 | CELLSPACING="0" |
| 1377 | ><TR |
| 1378 | ><TD |
| 1379 | WIDTH="25%" |
| 1380 | BGCOLOR="#C00000" |
| 1381 | ALIGN="left" |
| 1382 | ><A |
Daniel Veillard | 9cb5ff4 | 2001-01-29 08:22:21 +0000 | [diff] [blame] | 1383 | HREF="libxml-valid.html" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1384 | ><FONT |
| 1385 | COLOR="#FFFFFF" |
| 1386 | SIZE="3" |
| 1387 | ><B |
| 1388 | ><<< Previous Page</B |
| 1389 | ></FONT |
| 1390 | ></A |
| 1391 | ></TD |
| 1392 | ><TD |
| 1393 | WIDTH="25%" |
| 1394 | BGCOLOR="#0000C0" |
| 1395 | ALIGN="center" |
| 1396 | ><FONT |
| 1397 | COLOR="#FFFFFF" |
| 1398 | SIZE="3" |
| 1399 | ><B |
| 1400 | ><A |
| 1401 | HREF="book1.html" |
| 1402 | ><FONT |
| 1403 | COLOR="#FFFFFF" |
| 1404 | SIZE="3" |
| 1405 | ><B |
| 1406 | >Home</B |
| 1407 | ></FONT |
| 1408 | ></A |
| 1409 | ></B |
| 1410 | ></FONT |
| 1411 | ></TD |
| 1412 | ><TD |
| 1413 | WIDTH="25%" |
| 1414 | BGCOLOR="#00C000" |
| 1415 | ALIGN="center" |
| 1416 | ><FONT |
| 1417 | COLOR="#FFFFFF" |
| 1418 | SIZE="3" |
| 1419 | ><B |
| 1420 | ><A |
| 1421 | HREF="libxml-lib.html" |
| 1422 | ><FONT |
| 1423 | COLOR="#FFFFFF" |
| 1424 | SIZE="3" |
| 1425 | ><B |
| 1426 | >Up</B |
| 1427 | ></FONT |
| 1428 | ></A |
| 1429 | ></B |
| 1430 | ></FONT |
| 1431 | ></TD |
| 1432 | ><TD |
| 1433 | WIDTH="25%" |
| 1434 | BGCOLOR="#C00000" |
| 1435 | ALIGN="right" |
| 1436 | ><A |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1437 | HREF="libxml-xmlerror.html" |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1438 | ><FONT |
| 1439 | COLOR="#FFFFFF" |
| 1440 | SIZE="3" |
| 1441 | ><B |
| 1442 | >Next Page >>></B |
| 1443 | ></FONT |
| 1444 | ></A |
| 1445 | ></TD |
| 1446 | ></TR |
| 1447 | ><TR |
| 1448 | ><TD |
| 1449 | COLSPAN="2" |
| 1450 | ALIGN="left" |
| 1451 | ><FONT |
| 1452 | COLOR="#FFFFFF" |
| 1453 | SIZE="3" |
| 1454 | ><B |
| 1455 | >valid</B |
| 1456 | ></FONT |
| 1457 | ></TD |
| 1458 | ><TD |
| 1459 | COLSPAN="2" |
| 1460 | ALIGN="right" |
| 1461 | ><FONT |
| 1462 | COLOR="#FFFFFF" |
| 1463 | SIZE="3" |
| 1464 | ><B |
Daniel Veillard | 3bbbe6f | 2001-05-03 11:15:37 +0000 | [diff] [blame] | 1465 | >xmlerror</B |
Daniel Veillard | b732a0e | 2000-10-15 11:27:01 +0000 | [diff] [blame] | 1466 | ></FONT |
| 1467 | ></TD |
| 1468 | ></TR |
| 1469 | ></TABLE |
| 1470 | ></DIV |
| 1471 | ></BODY |
| 1472 | ></HTML |
| 1473 | > |