00001
00021 #ifndef __XML_URI_H__
00022
00023 #define __XML_URI_H__
00024
00025
00026
00027 #include <libxml/xmlversion.h>
00028
00029 #include <libxml/tree.h>
00030
00031
00032
00033 #ifdef __cplusplus
00034
00035 extern "C" {
00036
00037 #endif
00038
00039
00040
00053 typedef struct _xmlURI xmlURI;
00054
00055 typedef xmlURI *xmlURIPtr;
00056
00057 struct _xmlURI {
00058
00059 char *scheme;
00060
00061 char *opaque;
00062
00063 char *authority;
00064
00065 char *server;
00066
00067 char *user;
00068
00069 int port;
00070
00071 char *path;
00072
00073 char *query;
00074
00075 char *fragment;
00076
00077 int cleanup;
00078
00079 };
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093 XMLPUBFUN xmlURIPtr XMLCALL
00094
00095 xmlCreateURI (void);
00096
00097 XMLPUBFUN xmlChar * XMLCALL
00098
00099 xmlBuildURI (const xmlChar *URI,
00100
00101 const xmlChar *base);
00102
00103 XMLPUBFUN xmlChar * XMLCALL
00104
00105 xmlBuildRelativeURI (const xmlChar *URI,
00106
00107 const xmlChar *base);
00108
00109 XMLPUBFUN xmlURIPtr XMLCALL
00110
00111 xmlParseURI (const char *str);
00112
00113 XMLPUBFUN int XMLCALL
00114
00115 xmlParseURIReference (xmlURIPtr uri,
00116
00117 const char *str);
00118
00119 XMLPUBFUN xmlChar * XMLCALL
00120
00121 xmlSaveUri (xmlURIPtr uri);
00122
00123 XMLPUBFUN void XMLCALL
00124
00125 xmlPrintURI (FILE *stream,
00126
00127 xmlURIPtr uri);
00128
00129 XMLPUBFUN xmlChar * XMLCALL
00130
00131 xmlURIEscapeStr (const xmlChar *str,
00132
00133 const xmlChar *list);
00134
00135 XMLPUBFUN char * XMLCALL
00136
00137 xmlURIUnescapeString (const char *str,
00138
00139 int len,
00140
00141 char *target);
00142
00143 XMLPUBFUN int XMLCALL
00144
00145 xmlNormalizeURIPath (char *path);
00146
00147 XMLPUBFUN xmlChar * XMLCALL
00148
00149 xmlURIEscape (const xmlChar *str);
00150
00151 XMLPUBFUN void XMLCALL
00152
00153 xmlFreeURI (xmlURIPtr uri);
00154
00155 XMLPUBFUN xmlChar* XMLCALL
00156
00157 xmlCanonicPath (const xmlChar *path);
00158
00159
00160
00161 #ifdef __cplusplus
00162
00163 }
00164
00165 #endif
00166
00167 #endif
00168