Eneboo - Documentación para desarrolladores
|
00001 00011 #ifndef __XML_URI_H__ 00012 #define __XML_URI_H__ 00013 00014 #include <libxml/xmlversion.h> 00015 #include <libxml/tree.h> 00016 00017 #ifdef __cplusplus 00018 extern "C" { 00019 #endif 00020 00031 typedef struct _xmlURI xmlURI; 00032 typedef xmlURI *xmlURIPtr; 00033 struct _xmlURI { 00034 char *scheme; /* the URI scheme */ 00035 char *opaque; /* opaque part */ 00036 char *authority; /* the authority part */ 00037 char *server; /* the server part */ 00038 char *user; /* the user part */ 00039 int port; /* the port number */ 00040 char *path; /* the path string */ 00041 char *query; /* the query string (deprecated - use with caution) */ 00042 char *fragment; /* the fragment identifier */ 00043 int cleanup; /* parsing potentially unclean URI */ 00044 char *query_raw; /* the query string (as it appears in the URI) */ 00045 }; 00046 00047 /* 00048 * This function is in tree.h: 00049 * xmlChar * xmlNodeGetBase (xmlDocPtr doc, 00050 * xmlNodePtr cur); 00051 */ 00052 XMLPUBFUN xmlURIPtr XMLCALL 00053 xmlCreateURI (void); 00054 XMLPUBFUN xmlChar * XMLCALL 00055 xmlBuildURI (const xmlChar *URI, 00056 const xmlChar *base); 00057 XMLPUBFUN xmlChar * XMLCALL 00058 xmlBuildRelativeURI (const xmlChar *URI, 00059 const xmlChar *base); 00060 XMLPUBFUN xmlURIPtr XMLCALL 00061 xmlParseURI (const char *str); 00062 XMLPUBFUN xmlURIPtr XMLCALL 00063 xmlParseURIRaw (const char *str, 00064 int raw); 00065 XMLPUBFUN int XMLCALL 00066 xmlParseURIReference (xmlURIPtr uri, 00067 const char *str); 00068 XMLPUBFUN xmlChar * XMLCALL 00069 xmlSaveUri (xmlURIPtr uri); 00070 XMLPUBFUN void XMLCALL 00071 xmlPrintURI (FILE *stream, 00072 xmlURIPtr uri); 00073 XMLPUBFUN xmlChar * XMLCALL 00074 xmlURIEscapeStr (const xmlChar *str, 00075 const xmlChar *list); 00076 XMLPUBFUN char * XMLCALL 00077 xmlURIUnescapeString (const char *str, 00078 int len, 00079 char *target); 00080 XMLPUBFUN int XMLCALL 00081 xmlNormalizeURIPath (char *path); 00082 XMLPUBFUN xmlChar * XMLCALL 00083 xmlURIEscape (const xmlChar *str); 00084 XMLPUBFUN void XMLCALL 00085 xmlFreeURI (xmlURIPtr uri); 00086 XMLPUBFUN xmlChar* XMLCALL 00087 xmlCanonicPath (const xmlChar *path); 00088 XMLPUBFUN xmlChar* XMLCALL 00089 xmlPathToURI (const xmlChar *path); 00090 00091 #ifdef __cplusplus 00092 } 00093 #endif 00094 #endif /* __XML_URI_H__ */