2 * uri.c: library of generic URI related routines
6 * See Copyright for the status of this software.
14 #include <libxml/tree.h>
23 * A parsed URI reference. This is a struct containing the various fields
24 * as described in RFC 2396 but separated for further processing.
26 typedef struct _xmlURI xmlURI;
27 typedef xmlURI *xmlURIPtr;
29 char *scheme; /* the URI scheme */
30 char *opaque; /* opaque part */
31 char *authority; /* the authority part */
32 char *server; /* the server part */
33 char *user; /* the user part */
34 int port; /* the port number */
35 char *path; /* the path string */
36 char *query; /* the query string */
37 char *fragment; /* the fragment identifier */
38 int cleanup; /* parsing potentially unclean URI */
42 * This function is in tree.h:
43 * xmlChar * xmlNodeGetBase (xmlDocPtr doc,
46 xmlURIPtr xmlCreateURI (void);
47 xmlChar * xmlBuildURI (const xmlChar *URI,
49 xmlURIPtr xmlParseURI (const char *str);
50 int xmlParseURIReference (xmlURIPtr uri,
52 xmlChar * xmlSaveUri (xmlURIPtr uri);
53 void xmlPrintURI (FILE *stream,
55 xmlChar * xmlURIEscapeStr (const xmlChar *str,
57 char * xmlURIUnescapeString (const char *str,
60 int xmlNormalizeURIPath (char *path);
61 xmlChar * xmlURIEscape (const xmlChar *str);
62 void xmlFreeURI (xmlURIPtr uri);
63 xmlChar* xmlCanonicPath (const xmlChar *path);
68 #endif /* __XML_URI_H__ */