Details
struct xmlURI
struct xmlURI {
char *scheme;
char *opaque;
char *authority;
char *server;
char *user;
int port;
char *path;
char *query;
char *fragment;
}; |
xmlURIPtr
typedef xmlURI *xmlURIPtr; |
xmlCreateURI ()
Simply creates an empty xmlURI
xmlBuildURI ()
Computes he final URI of the reference done by checking that
the given URI is valid, and building the final URI using the
base URI. This is processed according to section 5.2 of the
RFC 2396
5.2. Resolving Relative References to Absolute Form
xmlParseURI ()
Parse an URI
URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
xmlParseURIReference ()
int xmlParseURIReference (xmlURIPtr uri,
const char *str); |
Parse an URI reference string and fills in the appropriate fields
of the uri structure
URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
xmlSaveUri ()
Save the URI as an escaped string
xmlPrintURI ()
void xmlPrintURI (FILE *stream,
xmlURIPtr uri); |
Prints the URI in the stream steam.
xmlURIUnescapeString ()
char* xmlURIUnescapeString (const char *str,
int len,
char *target); |
Unescaping routine, does not do validity checks !
Output is direct unsigned char translation of XX values (no encoding)
xmlNormalizeURIPath ()
int xmlNormalizeURIPath (char *path); |
Applies the 5 normalization steps to a path string--that is, RFC 2396
Section 5.2, steps 6.c through 6.g.
Normalization occurs directly on the string, no new allocation is done
xmlURIEscape ()
Escaping routine, does not do validity checks !
It will try to escape the chars needing this, but this is heuristic
based it's impossible to be sure.
xmlFreeURI ()
Free up the xmlURI struct