2 * Summary: library of generic URI related routines
3 * Description: library of generic URI related routines
6 * Copy: See Copyright for the status of this software.
8 * Author: Daniel Veillard
14 #include <libxml/xmlversion.h>
15 #include <libxml/tree.h>
24 * A parsed URI reference. This is a struct containing the various fields
25 * as described in RFC 2396 but separated for further processing.
27 * Note: query is a deprecated field which is incorrectly unescaped.
28 * query_raw takes precedence over query if the former is set.
29 * See: http://mail.gnome.org/archives/xml/2007-April/thread.html#00127
31 typedef struct _xmlURI xmlURI
;
32 typedef xmlURI
*xmlURIPtr
;
34 char *scheme
; /* the URI scheme */
35 char *opaque
; /* opaque part */
36 char *authority
; /* the authority part */
37 char *server
; /* the server part */
38 char *user
; /* the user part */
39 int port
; /* the port number */
40 char *path
; /* the path string */
41 char *query
; /* the query string (deprecated - use with caution) */
42 char *fragment
; /* the fragment identifier */
43 int cleanup
; /* parsing potentially unclean URI */
44 char *query_raw
; /* the query string (as it appears in the URI) */
48 * This function is in tree.h:
49 * xmlChar * xmlNodeGetBase (xmlDocPtr doc,
52 XMLPUBFUN xmlURIPtr XMLCALL
54 XMLPUBFUN xmlChar
* XMLCALL
55 xmlBuildURI (const xmlChar
*URI
,
57 XMLPUBFUN xmlChar
* XMLCALL
58 xmlBuildRelativeURI (const xmlChar
*URI
,
60 XMLPUBFUN xmlURIPtr XMLCALL
61 xmlParseURI (const char *str
);
62 XMLPUBFUN xmlURIPtr XMLCALL
63 xmlParseURIRaw (const char *str
,
66 xmlParseURIReference (xmlURIPtr uri
,
68 XMLPUBFUN xmlChar
* XMLCALL
69 xmlSaveUri (xmlURIPtr uri
);
70 XMLPUBFUN
void XMLCALL
71 xmlPrintURI (FILE *stream
,
73 XMLPUBFUN xmlChar
* XMLCALL
74 xmlURIEscapeStr (const xmlChar
*str
,
76 XMLPUBFUN
char * XMLCALL
77 xmlURIUnescapeString (const char *str
,
81 xmlNormalizeURIPath (char *path
);
82 XMLPUBFUN xmlChar
* XMLCALL
83 xmlURIEscape (const xmlChar
*str
);
84 XMLPUBFUN
void XMLCALL
85 xmlFreeURI (xmlURIPtr uri
);
86 XMLPUBFUN xmlChar
* XMLCALL
87 xmlCanonicPath (const xmlChar
*path
);
88 XMLPUBFUN xmlChar
* XMLCALL
89 xmlPathToURI (const xmlChar
*path
);
94 #endif /* __XML_URI_H__ */