blob: 8d0c53fed44c9e2426841987641a9f6abb835ec8 [file] [log] [blame]
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001<HTML
2><HEAD
3><TITLE
4>uri</TITLE
5><META
6NAME="GENERATOR"
Daniel Veillard539638b2002-07-06 19:55:14 +00007CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
Daniel Veillard60087f32001-10-10 09:45:09 +00008"><LINK
Daniel Veillardb732a0e2000-10-15 11:27:01 +00009REL="HOME"
10TITLE="Gnome XML Library Reference Manual"
11HREF="book1.html"><LINK
12REL="UP"
13TITLE="Libxml Library Reference"
14HREF="libxml-lib.html"><LINK
15REL="PREVIOUS"
Daniel Veillardaec63562003-03-23 20:42:17 +000016TITLE="relaxng"
17HREF="libxml-relaxng.html"><LINK
Daniel Veillardb732a0e2000-10-15 11:27:01 +000018REL="NEXT"
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +000019TITLE="xmlerror"
20HREF="libxml-xmlerror.html"></HEAD
Daniel Veillardb732a0e2000-10-15 11:27:01 +000021><BODY
Daniel Veillardbed7b052001-05-19 14:59:49 +000022CLASS="REFENTRY"
Daniel Veillardb732a0e2000-10-15 11:27:01 +000023BGCOLOR="#FFFFFF"
24TEXT="#000000"
Daniel Veillard503b8932001-01-05 06:36:31 +000025LINK="#0000FF"
26VLINK="#840084"
27ALINK="#0000FF"
Daniel Veillardb732a0e2000-10-15 11:27:01 +000028><DIV
29CLASS="NAVHEADER"
30><TABLE
31WIDTH="100%"
32BORDER="0"
33BGCOLOR="#000000"
34CELLPADDING="1"
35CELLSPACING="0"
36><TR
37><TH
38COLSPAN="4"
39ALIGN="center"
40><FONT
41COLOR="#FFFFFF"
42SIZE="5"
43>Gnome XML Library Reference Manual</FONT
44></TH
45></TR
46><TR
47><TD
48WIDTH="25%"
49BGCOLOR="#C00000"
50ALIGN="left"
51><A
Daniel Veillardaec63562003-03-23 20:42:17 +000052HREF="libxml-relaxng.html"
Daniel Veillardb732a0e2000-10-15 11:27:01 +000053><FONT
54COLOR="#FFFFFF"
55SIZE="3"
56><B
57>&#60;&#60;&#60; Previous Page</B
58></FONT
59></A
60></TD
61><TD
62WIDTH="25%"
63BGCOLOR="#0000C0"
64ALIGN="center"
65><FONT
66COLOR="#FFFFFF"
67SIZE="3"
68><B
69><A
70HREF="book1.html"
71><FONT
72COLOR="#FFFFFF"
73SIZE="3"
74><B
75>Home</B
76></FONT
77></A
78></B
79></FONT
80></TD
81><TD
82WIDTH="25%"
83BGCOLOR="#00C000"
84ALIGN="center"
85><FONT
86COLOR="#FFFFFF"
87SIZE="3"
88><B
89><A
90HREF="libxml-lib.html"
91><FONT
92COLOR="#FFFFFF"
93SIZE="3"
94><B
95>Up</B
96></FONT
97></A
98></B
99></FONT
100></TD
101><TD
102WIDTH="25%"
103BGCOLOR="#C00000"
104ALIGN="right"
105><A
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000106HREF="libxml-xmlerror.html"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000107><FONT
108COLOR="#FFFFFF"
109SIZE="3"
110><B
111>Next Page &#62;&#62;&#62;</B
112></FONT
113></A
114></TD
115></TR
116></TABLE
117></DIV
118><H1
Daniel Veillard503b8932001-01-05 06:36:31 +0000119><A
Daniel Veillardaec63562003-03-23 20:42:17 +0000120NAME="LIBXML-URI"
121></A
122>uri</H1
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000123><DIV
124CLASS="REFNAMEDIV"
125><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000126NAME="AEN12488"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000127></A
128><H2
129>Name</H2
Daniel Veillard503b8932001-01-05 06:36:31 +0000130>uri&nbsp;--&nbsp;</DIV
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000131><DIV
132CLASS="REFSYNOPSISDIV"
133><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000134NAME="AEN12491"
Daniel Veillardaec63562003-03-23 20:42:17 +0000135></A
136><H2
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000137>Synopsis</H2
138><TABLE
139BORDER="0"
140BGCOLOR="#D6E8FF"
141WIDTH="100%"
142CELLPADDING="6"
143><TR
144><TD
145><PRE
146CLASS="SYNOPSIS"
147>&#13;
148
149struct <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000150HREF="libxml-uri.html#XMLURI"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000151>xmlURI</A
152>;
153typedef <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000154HREF="libxml-uri.html#XMLURIPTR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000155>xmlURIPtr</A
156>;
157<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000158HREF="libxml-uri.html#XMLURIPTR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000159>xmlURIPtr</A
160> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000161HREF="libxml-uri.html#XMLCREATEURI"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000162>xmlCreateURI</A
163> (void);
164<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000165HREF="libxml-tree.html#XMLCHAR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000166>xmlChar</A
167>* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000168HREF="libxml-uri.html#XMLBUILDURI"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000169>xmlBuildURI</A
170> (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000171HREF="libxml-tree.html#XMLCHAR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000172>xmlChar</A
173> *URI,
174 const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000175HREF="libxml-tree.html#XMLCHAR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000176>xmlChar</A
177> *base);
178<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000179HREF="libxml-uri.html#XMLURIPTR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000180>xmlURIPtr</A
181> <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000182HREF="libxml-uri.html#XMLPARSEURI"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000183>xmlParseURI</A
Daniel Veillardef90ba72001-12-07 14:24:22 +0000184> (const char *str);
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000185int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000186HREF="libxml-uri.html#XMLPARSEURIREFERENCE"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000187>xmlParseURIReference</A
188> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000189HREF="libxml-uri.html#XMLURIPTR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000190>xmlURIPtr</A
191> uri,
192 const char *str);
193<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000194HREF="libxml-tree.html#XMLCHAR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000195>xmlChar</A
196>* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000197HREF="libxml-uri.html#XMLSAVEURI"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000198>xmlSaveUri</A
199> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000200HREF="libxml-uri.html#XMLURIPTR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000201>xmlURIPtr</A
202> uri);
203void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000204HREF="libxml-uri.html#XMLPRINTURI"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000205>xmlPrintURI</A
206> (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +0000207HREF="FILE-CAPS"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000208>FILE</GTKDOCLINK
209> *stream,
210 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000211HREF="libxml-uri.html#XMLURIPTR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000212>xmlURIPtr</A
213> uri);
Daniel Veillard4ec885a2001-06-17 10:31:07 +0000214<A
215HREF="libxml-tree.html#XMLCHAR"
216>xmlChar</A
217>* <A
218HREF="libxml-uri.html#XMLURIESCAPESTR"
219>xmlURIEscapeStr</A
220> (const <A
221HREF="libxml-tree.html#XMLCHAR"
222>xmlChar</A
223> *str,
224 const <A
225HREF="libxml-tree.html#XMLCHAR"
226>xmlChar</A
227> *list);
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000228char* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000229HREF="libxml-uri.html#XMLURIUNESCAPESTRING"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000230>xmlURIUnescapeString</A
231> (const char *str,
232 int len,
233 char *target);
234int <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000235HREF="libxml-uri.html#XMLNORMALIZEURIPATH"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000236>xmlNormalizeURIPath</A
237> (char *path);
Daniel Veillard28929b22000-11-13 18:22:49 +0000238<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000239HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard28929b22000-11-13 18:22:49 +0000240>xmlChar</A
241>* <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000242HREF="libxml-uri.html#XMLURIESCAPE"
Daniel Veillard28929b22000-11-13 18:22:49 +0000243>xmlURIEscape</A
244> (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000245HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard28929b22000-11-13 18:22:49 +0000246>xmlChar</A
247> *str);
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000248void <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000249HREF="libxml-uri.html#XMLFREEURI"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000250>xmlFreeURI</A
251> (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000252HREF="libxml-uri.html#XMLURIPTR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000253>xmlURIPtr</A
Daniel Veillardaec63562003-03-23 20:42:17 +0000254> uri);
255<A
256HREF="libxml-tree.html#XMLCHAR"
257>xmlChar</A
258>* <A
259HREF="libxml-uri.html#XMLCANONICPATH"
260>xmlCanonicPath</A
261> (const <A
262HREF="libxml-tree.html#XMLCHAR"
263>xmlChar</A
264> *path);</PRE
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000265></TD
266></TR
267></TABLE
268></DIV
269><DIV
270CLASS="REFSECT1"
271><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000272NAME="AEN12526"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000273></A
274><H2
275>Description</H2
276><P
277></P
278></DIV
279><DIV
280CLASS="REFSECT1"
281><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000282NAME="AEN12529"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000283></A
284><H2
285>Details</H2
286><DIV
287CLASS="REFSECT2"
288><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000289NAME="AEN12531"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000290></A
291><H3
292><A
293NAME="XMLURI"
294></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000295>struct xmlURI</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000296><TABLE
297BORDER="0"
298BGCOLOR="#D6E8FF"
299WIDTH="100%"
300CELLPADDING="6"
301><TR
302><TD
303><PRE
304CLASS="PROGRAMLISTING"
305>struct xmlURI {
Daniel Veillardef90ba72001-12-07 14:24:22 +0000306 char *scheme; /* the URI scheme */
307 char *opaque; /* opaque part */
308 char *authority; /* the authority part */
309 char *server; /* the server part */
310 char *user; /* the user part */
311 int port; /* the port number */
312 char *path; /* the path string */
313 char *query; /* the query string */
314 char *fragment; /* the fragment identifier */
315 int cleanup; /* parsing potentially unclean URI */
316};</PRE
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000317></TD
318></TR
319></TABLE
320><P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000321>A parsed URI reference. This is a struct containing the various fields
Daniel Veillard19274092002-03-25 16:48:03 +0000322as described in RFC 2396 but separated for further processing.</P
Daniel Veillarde7ead2d2001-08-22 23:44:09 +0000323><P
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000324></P
325></DIV
326><HR><DIV
327CLASS="REFSECT2"
328><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000329NAME="AEN12537"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000330></A
331><H3
332><A
333NAME="XMLURIPTR"
334></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000335>xmlURIPtr</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000336><P
337></P
338></DIV
339><HR><DIV
340CLASS="REFSECT2"
341><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000342NAME="AEN12541"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000343></A
344><H3
345><A
346NAME="XMLCREATEURI"
347></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000348>xmlCreateURI ()</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000349><TABLE
350BORDER="0"
351BGCOLOR="#D6E8FF"
352WIDTH="100%"
353CELLPADDING="6"
354><TR
355><TD
356><PRE
357CLASS="PROGRAMLISTING"
358><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000359HREF="libxml-uri.html#XMLURIPTR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000360>xmlURIPtr</A
361> xmlCreateURI (void);</PRE
362></TD
363></TR
364></TABLE
365><P
366>Simply creates an empty xmlURI</P
367><P
368></P
369><DIV
370CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000371><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000372NAME="AEN12548"
Daniel Veillardaec63562003-03-23 20:42:17 +0000373></A
374><P
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000375></P
376><TABLE
377BORDER="0"
378WIDTH="100%"
379BGCOLOR="#FFD0D0"
380CELLSPACING="0"
381CELLPADDING="4"
382CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000383><TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000384><TR
385><TD
386WIDTH="20%"
387ALIGN="RIGHT"
388VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +0000389><SPAN
390CLASS="emphasis"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000391><I
392CLASS="EMPHASIS"
393>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +0000394></SPAN
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000395> :</TD
396><TD
397WIDTH="80%"
398ALIGN="LEFT"
399VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000400>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000401></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000402></TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000403></TABLE
404><P
405></P
406></DIV
407></DIV
408><HR><DIV
409CLASS="REFSECT2"
410><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000411NAME="AEN12557"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000412></A
413><H3
414><A
415NAME="XMLBUILDURI"
416></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000417>xmlBuildURI ()</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000418><TABLE
419BORDER="0"
420BGCOLOR="#D6E8FF"
421WIDTH="100%"
422CELLPADDING="6"
423><TR
424><TD
425><PRE
426CLASS="PROGRAMLISTING"
427><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000428HREF="libxml-tree.html#XMLCHAR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000429>xmlChar</A
430>* xmlBuildURI (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000431HREF="libxml-tree.html#XMLCHAR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000432>xmlChar</A
433> *URI,
434 const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000435HREF="libxml-tree.html#XMLCHAR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000436>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
443the given URI is valid, and building the final URI using the
444base URI. This is processed according to section 5.2 of the
445RFC 2396</P
446><P
447>5.2. Resolving Relative References to Absolute Form</P
448><P
449></P
450><DIV
451CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000452><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000453NAME="AEN12567"
Daniel Veillardaec63562003-03-23 20:42:17 +0000454></A
455><P
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000456></P
457><TABLE
458BORDER="0"
459WIDTH="100%"
460BGCOLOR="#FFD0D0"
461CELLSPACING="0"
462CELLPADDING="4"
463CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000464><TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000465><TR
466><TD
467WIDTH="20%"
468ALIGN="RIGHT"
469VALIGN="TOP"
470><TT
471CLASS="PARAMETER"
472><I
473>URI</I
474></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000475>&nbsp;:</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000476><TD
477WIDTH="80%"
478ALIGN="LEFT"
479VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000480>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000481></TR
482><TR
483><TD
484WIDTH="20%"
485ALIGN="RIGHT"
486VALIGN="TOP"
487><TT
488CLASS="PARAMETER"
489><I
490>base</I
491></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000492>&nbsp;:</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000493><TD
494WIDTH="80%"
495ALIGN="LEFT"
496VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000497>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000498></TR
499><TR
500><TD
501WIDTH="20%"
502ALIGN="RIGHT"
503VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +0000504><SPAN
505CLASS="emphasis"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000506><I
507CLASS="EMPHASIS"
508>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +0000509></SPAN
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000510> :</TD
511><TD
512WIDTH="80%"
513ALIGN="LEFT"
514VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000515>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000516></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000517></TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000518></TABLE
519><P
520></P
521></DIV
522></DIV
523><HR><DIV
524CLASS="REFSECT2"
525><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000526NAME="AEN12584"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000527></A
528><H3
529><A
530NAME="XMLPARSEURI"
531></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000532>xmlParseURI ()</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000533><TABLE
534BORDER="0"
535BGCOLOR="#D6E8FF"
536WIDTH="100%"
537CELLPADDING="6"
538><TR
539><TD
540><PRE
541CLASS="PROGRAMLISTING"
542><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000543HREF="libxml-uri.html#XMLURIPTR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000544>xmlURIPtr</A
Daniel Veillardef90ba72001-12-07 14:24:22 +0000545> xmlParseURI (const char *str);</PRE
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000546></TD
547></TR
548></TABLE
549><P
550>Parse an URI </P
551><P
552>URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]</P
553><P
554></P
555><DIV
556CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000557><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000558NAME="AEN12592"
Daniel Veillardaec63562003-03-23 20:42:17 +0000559></A
560><P
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000561></P
562><TABLE
563BORDER="0"
564WIDTH="100%"
565BGCOLOR="#FFD0D0"
566CELLSPACING="0"
567CELLPADDING="4"
568CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000569><TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000570><TR
571><TD
572WIDTH="20%"
573ALIGN="RIGHT"
574VALIGN="TOP"
575><TT
576CLASS="PARAMETER"
577><I
Daniel Veillardef90ba72001-12-07 14:24:22 +0000578>str</I
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000579></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000580>&nbsp;:</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000581><TD
582WIDTH="80%"
583ALIGN="LEFT"
584VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000585>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000586></TR
587><TR
588><TD
589WIDTH="20%"
590ALIGN="RIGHT"
591VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +0000592><SPAN
593CLASS="emphasis"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000594><I
595CLASS="EMPHASIS"
596>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +0000597></SPAN
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000598> :</TD
599><TD
600WIDTH="80%"
601ALIGN="LEFT"
602VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000603>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000604></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000605></TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000606></TABLE
607><P
608></P
609></DIV
610></DIV
611><HR><DIV
612CLASS="REFSECT2"
613><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000614NAME="AEN12605"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000615></A
616><H3
617><A
618NAME="XMLPARSEURIREFERENCE"
619></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000620>xmlParseURIReference ()</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000621><TABLE
622BORDER="0"
623BGCOLOR="#D6E8FF"
624WIDTH="100%"
625CELLPADDING="6"
626><TR
627><TD
628><PRE
629CLASS="PROGRAMLISTING"
630>int xmlParseURIReference (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000631HREF="libxml-uri.html#XMLURIPTR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000632>xmlURIPtr</A
633> uri,
634 const char *str);</PRE
635></TD
636></TR
637></TABLE
638><P
639>Parse an URI reference string and fills in the appropriate fields
640of the <TT
641CLASS="PARAMETER"
642><I
643>uri</I
644></TT
645> structure</P
646><P
647>URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]</P
648><P
649></P
650><DIV
651CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000652><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000653NAME="AEN12614"
Daniel Veillardaec63562003-03-23 20:42:17 +0000654></A
655><P
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000656></P
657><TABLE
658BORDER="0"
659WIDTH="100%"
660BGCOLOR="#FFD0D0"
661CELLSPACING="0"
662CELLPADDING="4"
663CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000664><TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000665><TR
666><TD
667WIDTH="20%"
668ALIGN="RIGHT"
669VALIGN="TOP"
670><TT
671CLASS="PARAMETER"
672><I
673>uri</I
674></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000675>&nbsp;:</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000676><TD
677WIDTH="80%"
678ALIGN="LEFT"
679VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000680>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000681></TR
682><TR
683><TD
684WIDTH="20%"
685ALIGN="RIGHT"
686VALIGN="TOP"
687><TT
688CLASS="PARAMETER"
689><I
690>str</I
691></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000692>&nbsp;:</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000693><TD
694WIDTH="80%"
695ALIGN="LEFT"
696VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000697>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000698></TR
699><TR
700><TD
701WIDTH="20%"
702ALIGN="RIGHT"
703VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +0000704><SPAN
705CLASS="emphasis"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000706><I
707CLASS="EMPHASIS"
708>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +0000709></SPAN
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000710> :</TD
711><TD
712WIDTH="80%"
713ALIGN="LEFT"
714VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000715>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000716></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000717></TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000718></TABLE
719><P
720></P
721></DIV
722></DIV
723><HR><DIV
724CLASS="REFSECT2"
725><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000726NAME="AEN12631"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000727></A
728><H3
729><A
730NAME="XMLSAVEURI"
731></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000732>xmlSaveUri ()</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000733><TABLE
734BORDER="0"
735BGCOLOR="#D6E8FF"
736WIDTH="100%"
737CELLPADDING="6"
738><TR
739><TD
740><PRE
741CLASS="PROGRAMLISTING"
742><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000743HREF="libxml-tree.html#XMLCHAR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000744>xmlChar</A
745>* xmlSaveUri (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000746HREF="libxml-uri.html#XMLURIPTR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000747>xmlURIPtr</A
748> uri);</PRE
749></TD
750></TR
751></TABLE
752><P
753>Save the URI as an escaped string</P
754><P
755></P
756><DIV
757CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000758><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000759NAME="AEN12639"
Daniel Veillardaec63562003-03-23 20:42:17 +0000760></A
761><P
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000762></P
763><TABLE
764BORDER="0"
765WIDTH="100%"
766BGCOLOR="#FFD0D0"
767CELLSPACING="0"
768CELLPADDING="4"
769CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000770><TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000771><TR
772><TD
773WIDTH="20%"
774ALIGN="RIGHT"
775VALIGN="TOP"
776><TT
777CLASS="PARAMETER"
778><I
779>uri</I
780></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000781>&nbsp;:</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000782><TD
783WIDTH="80%"
784ALIGN="LEFT"
785VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000786>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000787></TR
788><TR
789><TD
790WIDTH="20%"
791ALIGN="RIGHT"
792VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +0000793><SPAN
794CLASS="emphasis"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000795><I
796CLASS="EMPHASIS"
797>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +0000798></SPAN
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000799> :</TD
800><TD
801WIDTH="80%"
802ALIGN="LEFT"
803VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000804>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000805></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000806></TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000807></TABLE
808><P
809></P
810></DIV
811></DIV
812><HR><DIV
813CLASS="REFSECT2"
814><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000815NAME="AEN12652"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000816></A
817><H3
818><A
819NAME="XMLPRINTURI"
820></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000821>xmlPrintURI ()</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000822><TABLE
823BORDER="0"
824BGCOLOR="#D6E8FF"
825WIDTH="100%"
826CELLPADDING="6"
827><TR
828><TD
829><PRE
830CLASS="PROGRAMLISTING"
831>void xmlPrintURI (<GTKDOCLINK
Daniel Veillard503b8932001-01-05 06:36:31 +0000832HREF="FILE-CAPS"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000833>FILE</GTKDOCLINK
834> *stream,
835 <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +0000836HREF="libxml-uri.html#XMLURIPTR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000837>xmlURIPtr</A
838> uri);</PRE
839></TD
840></TR
841></TABLE
842><P
843>Prints the URI in the stream <TT
844CLASS="PARAMETER"
845><I
846>steam</I
847></TT
848>.</P
849><P
850></P
851><DIV
852CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000853><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000854NAME="AEN12661"
Daniel Veillardaec63562003-03-23 20:42:17 +0000855></A
856><P
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000857></P
858><TABLE
859BORDER="0"
860WIDTH="100%"
861BGCOLOR="#FFD0D0"
862CELLSPACING="0"
863CELLPADDING="4"
864CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +0000865><TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000866><TR
867><TD
868WIDTH="20%"
869ALIGN="RIGHT"
870VALIGN="TOP"
871><TT
872CLASS="PARAMETER"
873><I
874>stream</I
875></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000876>&nbsp;:</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000877><TD
878WIDTH="80%"
879ALIGN="LEFT"
880VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000881>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000882></TR
883><TR
884><TD
885WIDTH="20%"
886ALIGN="RIGHT"
887VALIGN="TOP"
888><TT
889CLASS="PARAMETER"
890><I
891>uri</I
892></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +0000893>&nbsp;:</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000894><TD
895WIDTH="80%"
896ALIGN="LEFT"
897VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000898>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000899></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +0000900></TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +0000901></TABLE
902><P
903></P
904></DIV
905></DIV
906><HR><DIV
907CLASS="REFSECT2"
908><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000909NAME="AEN12674"
Daniel Veillard4ec885a2001-06-17 10:31:07 +0000910></A
911><H3
912><A
913NAME="XMLURIESCAPESTR"
914></A
Daniel Veillardaf43f632002-03-08 15:05:20 +0000915>xmlURIEscapeStr ()</H3
Daniel Veillard4ec885a2001-06-17 10:31:07 +0000916><TABLE
917BORDER="0"
918BGCOLOR="#D6E8FF"
919WIDTH="100%"
920CELLPADDING="6"
921><TR
922><TD
923><PRE
924CLASS="PROGRAMLISTING"
925><A
926HREF="libxml-tree.html#XMLCHAR"
927>xmlChar</A
928>* xmlURIEscapeStr (const <A
929HREF="libxml-tree.html#XMLCHAR"
930>xmlChar</A
931> *str,
932 const <A
933HREF="libxml-tree.html#XMLCHAR"
934>xmlChar</A
935> *list);</PRE
936></TD
937></TR
938></TABLE
939><P
940>This routine escapes a string to hex, ignoring reserved characters (a-z)
941and the characters in the exception list.</P
942><P
943></P
944><DIV
945CLASS="INFORMALTABLE"
946><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000947NAME="AEN12683"
Daniel Veillardaec63562003-03-23 20:42:17 +0000948></A
949><P
Daniel Veillard4ec885a2001-06-17 10:31:07 +0000950></P
951><TABLE
952BORDER="0"
953WIDTH="100%"
954BGCOLOR="#FFD0D0"
955CELLSPACING="0"
956CELLPADDING="4"
957CLASS="CALSTABLE"
958><TBODY
959><TR
960><TD
961WIDTH="20%"
962ALIGN="RIGHT"
963VALIGN="TOP"
964><TT
965CLASS="PARAMETER"
966><I
967>str</I
968></TT
969>&nbsp;:</TD
970><TD
971WIDTH="80%"
972ALIGN="LEFT"
973VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000974>&nbsp;</TD
Daniel Veillard4ec885a2001-06-17 10:31:07 +0000975></TR
976><TR
977><TD
978WIDTH="20%"
979ALIGN="RIGHT"
980VALIGN="TOP"
981><TT
982CLASS="PARAMETER"
983><I
984>list</I
985></TT
986>&nbsp;:</TD
987><TD
988WIDTH="80%"
989ALIGN="LEFT"
990VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +0000991>&nbsp;</TD
Daniel Veillard4ec885a2001-06-17 10:31:07 +0000992></TR
993><TR
994><TD
995WIDTH="20%"
996ALIGN="RIGHT"
997VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +0000998><SPAN
999CLASS="emphasis"
Daniel Veillard4ec885a2001-06-17 10:31:07 +00001000><I
1001CLASS="EMPHASIS"
1002>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00001003></SPAN
Daniel Veillard4ec885a2001-06-17 10:31:07 +00001004> :</TD
1005><TD
1006WIDTH="80%"
1007ALIGN="LEFT"
1008VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001009>&nbsp;</TD
Daniel Veillard4ec885a2001-06-17 10:31:07 +00001010></TR
1011></TBODY
1012></TABLE
1013><P
1014></P
1015></DIV
1016></DIV
1017><HR><DIV
1018CLASS="REFSECT2"
1019><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001020NAME="AEN12700"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001021></A
1022><H3
1023><A
1024NAME="XMLURIUNESCAPESTRING"
1025></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001026>xmlURIUnescapeString ()</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001027><TABLE
1028BORDER="0"
1029BGCOLOR="#D6E8FF"
1030WIDTH="100%"
1031CELLPADDING="6"
1032><TR
1033><TD
1034><PRE
1035CLASS="PROGRAMLISTING"
1036>char* xmlURIUnescapeString (const char *str,
1037 int len,
1038 char *target);</PRE
1039></TD
1040></TR
1041></TABLE
1042><P
1043>Unescaping routine, does not do validity checks !
1044Output is direct unsigned char translation of <TT
1045CLASS="LITERAL"
1046>XX</TT
1047> values (no encoding)</P
1048><P
1049></P
1050><DIV
1051CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001052><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001053NAME="AEN12707"
Daniel Veillardaec63562003-03-23 20:42:17 +00001054></A
1055><P
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001056></P
1057><TABLE
1058BORDER="0"
1059WIDTH="100%"
1060BGCOLOR="#FFD0D0"
1061CELLSPACING="0"
1062CELLPADDING="4"
1063CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001064><TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001065><TR
1066><TD
1067WIDTH="20%"
1068ALIGN="RIGHT"
1069VALIGN="TOP"
1070><TT
1071CLASS="PARAMETER"
1072><I
1073>str</I
1074></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001075>&nbsp;:</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001076><TD
1077WIDTH="80%"
1078ALIGN="LEFT"
1079VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001080>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001081></TR
1082><TR
1083><TD
1084WIDTH="20%"
1085ALIGN="RIGHT"
1086VALIGN="TOP"
1087><TT
1088CLASS="PARAMETER"
1089><I
1090>len</I
1091></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001092>&nbsp;:</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001093><TD
1094WIDTH="80%"
1095ALIGN="LEFT"
1096VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001097>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001098></TR
1099><TR
1100><TD
1101WIDTH="20%"
1102ALIGN="RIGHT"
1103VALIGN="TOP"
1104><TT
1105CLASS="PARAMETER"
1106><I
1107>target</I
1108></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001109>&nbsp;:</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001110><TD
1111WIDTH="80%"
1112ALIGN="LEFT"
1113VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001114>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001115></TR
1116><TR
1117><TD
1118WIDTH="20%"
1119ALIGN="RIGHT"
1120VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00001121><SPAN
1122CLASS="emphasis"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001123><I
1124CLASS="EMPHASIS"
1125>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00001126></SPAN
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001127> :</TD
1128><TD
1129WIDTH="80%"
1130ALIGN="LEFT"
1131VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001132>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001133></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001134></TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001135></TABLE
1136><P
1137></P
1138></DIV
1139></DIV
1140><HR><DIV
1141CLASS="REFSECT2"
1142><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001143NAME="AEN12728"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001144></A
1145><H3
1146><A
1147NAME="XMLNORMALIZEURIPATH"
1148></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001149>xmlNormalizeURIPath ()</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001150><TABLE
1151BORDER="0"
1152BGCOLOR="#D6E8FF"
1153WIDTH="100%"
1154CELLPADDING="6"
1155><TR
1156><TD
1157><PRE
1158CLASS="PROGRAMLISTING"
1159>int xmlNormalizeURIPath (char *path);</PRE
1160></TD
1161></TR
1162></TABLE
1163><P
Daniel Veillardd194dd22001-02-14 10:37:43 +00001164>Applies the 5 normalization steps to a path string--that is, RFC 2396
1165Section 5.2, steps 6.c through 6.g.</P
1166><P
1167>Normalization occurs directly on the string, no new allocation is done</P
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001168><P
1169></P
1170><DIV
1171CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001172><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001173NAME="AEN12735"
Daniel Veillardaec63562003-03-23 20:42:17 +00001174></A
1175><P
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001176></P
1177><TABLE
1178BORDER="0"
1179WIDTH="100%"
1180BGCOLOR="#FFD0D0"
1181CELLSPACING="0"
1182CELLPADDING="4"
1183CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001184><TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001185><TR
1186><TD
1187WIDTH="20%"
1188ALIGN="RIGHT"
1189VALIGN="TOP"
1190><TT
1191CLASS="PARAMETER"
1192><I
1193>path</I
1194></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001195>&nbsp;:</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001196><TD
1197WIDTH="80%"
1198ALIGN="LEFT"
1199VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001200>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001201></TR
1202><TR
1203><TD
1204WIDTH="20%"
1205ALIGN="RIGHT"
1206VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00001207><SPAN
1208CLASS="emphasis"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001209><I
1210CLASS="EMPHASIS"
1211>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00001212></SPAN
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001213> :</TD
1214><TD
1215WIDTH="80%"
1216ALIGN="LEFT"
1217VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001218>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001219></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001220></TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001221></TABLE
1222><P
1223></P
1224></DIV
1225></DIV
1226><HR><DIV
1227CLASS="REFSECT2"
1228><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001229NAME="AEN12748"
Daniel Veillard28929b22000-11-13 18:22:49 +00001230></A
1231><H3
1232><A
1233NAME="XMLURIESCAPE"
1234></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001235>xmlURIEscape ()</H3
Daniel Veillard28929b22000-11-13 18:22:49 +00001236><TABLE
1237BORDER="0"
1238BGCOLOR="#D6E8FF"
1239WIDTH="100%"
1240CELLPADDING="6"
1241><TR
1242><TD
1243><PRE
1244CLASS="PROGRAMLISTING"
1245><A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001246HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard28929b22000-11-13 18:22:49 +00001247>xmlChar</A
1248>* xmlURIEscape (const <A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001249HREF="libxml-tree.html#XMLCHAR"
Daniel Veillard28929b22000-11-13 18:22:49 +00001250>xmlChar</A
1251> *str);</PRE
1252></TD
1253></TR
1254></TABLE
1255><P
1256>Escaping routine, does not do validity checks !
1257It will try to escape the chars needing this, but this is heuristic
1258based it's impossible to be sure.</P
1259><P
1260></P
1261><DIV
1262CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001263><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001264NAME="AEN12756"
Daniel Veillardaec63562003-03-23 20:42:17 +00001265></A
1266><P
Daniel Veillard28929b22000-11-13 18:22:49 +00001267></P
1268><TABLE
1269BORDER="0"
1270WIDTH="100%"
1271BGCOLOR="#FFD0D0"
1272CELLSPACING="0"
1273CELLPADDING="4"
1274CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001275><TBODY
Daniel Veillard28929b22000-11-13 18:22:49 +00001276><TR
1277><TD
1278WIDTH="20%"
1279ALIGN="RIGHT"
1280VALIGN="TOP"
1281><TT
1282CLASS="PARAMETER"
1283><I
1284>str</I
1285></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001286>&nbsp;:</TD
Daniel Veillard28929b22000-11-13 18:22:49 +00001287><TD
1288WIDTH="80%"
1289ALIGN="LEFT"
1290VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001291>&nbsp;</TD
Daniel Veillard28929b22000-11-13 18:22:49 +00001292></TR
1293><TR
1294><TD
1295WIDTH="20%"
1296ALIGN="RIGHT"
1297VALIGN="TOP"
Daniel Veillard539638b2002-07-06 19:55:14 +00001298><SPAN
1299CLASS="emphasis"
Daniel Veillard28929b22000-11-13 18:22:49 +00001300><I
1301CLASS="EMPHASIS"
1302>Returns</I
Daniel Veillard539638b2002-07-06 19:55:14 +00001303></SPAN
Daniel Veillard28929b22000-11-13 18:22:49 +00001304> :</TD
1305><TD
1306WIDTH="80%"
1307ALIGN="LEFT"
1308VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001309>&nbsp;</TD
Daniel Veillard28929b22000-11-13 18:22:49 +00001310></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001311></TBODY
Daniel Veillard28929b22000-11-13 18:22:49 +00001312></TABLE
1313><P
1314></P
1315></DIV
1316></DIV
1317><HR><DIV
1318CLASS="REFSECT2"
1319><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001320NAME="AEN12769"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001321></A
1322><H3
1323><A
1324NAME="XMLFREEURI"
1325></A
Daniel Veillardaf43f632002-03-08 15:05:20 +00001326>xmlFreeURI ()</H3
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001327><TABLE
1328BORDER="0"
1329BGCOLOR="#D6E8FF"
1330WIDTH="100%"
1331CELLPADDING="6"
1332><TR
1333><TD
1334><PRE
1335CLASS="PROGRAMLISTING"
1336>void xmlFreeURI (<A
Daniel Veillard9cb5ff42001-01-29 08:22:21 +00001337HREF="libxml-uri.html#XMLURIPTR"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001338>xmlURIPtr</A
1339> uri);</PRE
1340></TD
1341></TR
1342></TABLE
1343><P
1344>Free up the xmlURI struct</P
1345><P
1346></P
1347><DIV
1348CLASS="INFORMALTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001349><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001350NAME="AEN12776"
Daniel Veillardaec63562003-03-23 20:42:17 +00001351></A
1352><P
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001353></P
1354><TABLE
1355BORDER="0"
1356WIDTH="100%"
1357BGCOLOR="#FFD0D0"
1358CELLSPACING="0"
1359CELLPADDING="4"
1360CLASS="CALSTABLE"
Daniel Veillardbed7b052001-05-19 14:59:49 +00001361><TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001362><TR
1363><TD
1364WIDTH="20%"
1365ALIGN="RIGHT"
1366VALIGN="TOP"
1367><TT
1368CLASS="PARAMETER"
1369><I
1370>uri</I
1371></TT
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001372>&nbsp;:</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001373><TD
1374WIDTH="80%"
1375ALIGN="LEFT"
1376VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001377>&nbsp;</TD
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001378></TR
Daniel Veillardbed7b052001-05-19 14:59:49 +00001379></TBODY
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001380></TABLE
1381><P
1382></P
1383></DIV
1384></DIV
Daniel Veillardaec63562003-03-23 20:42:17 +00001385><HR><DIV
1386CLASS="REFSECT2"
1387><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001388NAME="AEN12785"
Daniel Veillardaec63562003-03-23 20:42:17 +00001389></A
1390><H3
1391><A
1392NAME="XMLCANONICPATH"
1393></A
1394>xmlCanonicPath ()</H3
1395><TABLE
1396BORDER="0"
1397BGCOLOR="#D6E8FF"
1398WIDTH="100%"
1399CELLPADDING="6"
1400><TR
1401><TD
1402><PRE
1403CLASS="PROGRAMLISTING"
1404><A
1405HREF="libxml-tree.html#XMLCHAR"
1406>xmlChar</A
1407>* xmlCanonicPath (const <A
1408HREF="libxml-tree.html#XMLCHAR"
1409>xmlChar</A
1410> *path);</PRE
1411></TD
1412></TR
1413></TABLE
1414><P
1415>Constructs a canonic path from the specified path.</P
1416><P
1417></P
1418><DIV
1419CLASS="INFORMALTABLE"
1420><A
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001421NAME="AEN12793"
Daniel Veillardaec63562003-03-23 20:42:17 +00001422></A
1423><P
1424></P
1425><TABLE
1426BORDER="0"
1427WIDTH="100%"
1428BGCOLOR="#FFD0D0"
1429CELLSPACING="0"
1430CELLPADDING="4"
1431CLASS="CALSTABLE"
1432><TBODY
1433><TR
1434><TD
1435WIDTH="20%"
1436ALIGN="RIGHT"
1437VALIGN="TOP"
1438><TT
1439CLASS="PARAMETER"
1440><I
1441>path</I
1442></TT
1443>&nbsp;:</TD
1444><TD
1445WIDTH="80%"
1446ALIGN="LEFT"
1447VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001448>&nbsp;</TD
Daniel Veillardaec63562003-03-23 20:42:17 +00001449></TR
1450><TR
1451><TD
1452WIDTH="20%"
1453ALIGN="RIGHT"
1454VALIGN="TOP"
1455><SPAN
1456CLASS="emphasis"
1457><I
1458CLASS="EMPHASIS"
1459>Returns</I
1460></SPAN
1461> :</TD
1462><TD
1463WIDTH="80%"
1464ALIGN="LEFT"
1465VALIGN="TOP"
Daniel Veillardd8da01c2003-03-24 15:58:23 +00001466>&nbsp;</TD
Daniel Veillardaec63562003-03-23 20:42:17 +00001467></TR
1468></TBODY
1469></TABLE
1470><P
1471></P
1472></DIV
1473></DIV
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001474></DIV
1475><DIV
1476CLASS="NAVFOOTER"
1477><BR
1478CLEAR="all"><BR><TABLE
1479WIDTH="100%"
1480BORDER="0"
1481BGCOLOR="#000000"
1482CELLPADDING="1"
1483CELLSPACING="0"
1484><TR
1485><TD
1486WIDTH="25%"
1487BGCOLOR="#C00000"
1488ALIGN="left"
1489><A
Daniel Veillardaec63562003-03-23 20:42:17 +00001490HREF="libxml-relaxng.html"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001491><FONT
1492COLOR="#FFFFFF"
1493SIZE="3"
1494><B
1495>&#60;&#60;&#60; Previous Page</B
1496></FONT
1497></A
1498></TD
1499><TD
1500WIDTH="25%"
1501BGCOLOR="#0000C0"
1502ALIGN="center"
1503><FONT
1504COLOR="#FFFFFF"
1505SIZE="3"
1506><B
1507><A
1508HREF="book1.html"
1509><FONT
1510COLOR="#FFFFFF"
1511SIZE="3"
1512><B
1513>Home</B
1514></FONT
1515></A
1516></B
1517></FONT
1518></TD
1519><TD
1520WIDTH="25%"
1521BGCOLOR="#00C000"
1522ALIGN="center"
1523><FONT
1524COLOR="#FFFFFF"
1525SIZE="3"
1526><B
1527><A
1528HREF="libxml-lib.html"
1529><FONT
1530COLOR="#FFFFFF"
1531SIZE="3"
1532><B
1533>Up</B
1534></FONT
1535></A
1536></B
1537></FONT
1538></TD
1539><TD
1540WIDTH="25%"
1541BGCOLOR="#C00000"
1542ALIGN="right"
1543><A
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001544HREF="libxml-xmlerror.html"
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001545><FONT
1546COLOR="#FFFFFF"
1547SIZE="3"
1548><B
1549>Next Page &#62;&#62;&#62;</B
1550></FONT
1551></A
1552></TD
1553></TR
1554><TR
1555><TD
1556COLSPAN="2"
1557ALIGN="left"
1558><FONT
1559COLOR="#FFFFFF"
1560SIZE="3"
1561><B
Daniel Veillardaec63562003-03-23 20:42:17 +00001562>relaxng</B
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001563></FONT
1564></TD
1565><TD
1566COLSPAN="2"
1567ALIGN="right"
1568><FONT
1569COLOR="#FFFFFF"
1570SIZE="3"
1571><B
Daniel Veillard3bbbe6f2001-05-03 11:15:37 +00001572>xmlerror</B
Daniel Veillardb732a0e2000-10-15 11:27:01 +00001573></FONT
1574></TD
1575></TR
1576></TABLE
1577></DIV
1578></BODY
1579></HTML
1580>