* xmlBuildURI: * @URI: the URI instance found in the document * @base: the base value * * 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 * * Returns a new URI string (to be freed by
| 2358 | * of error. |
| 2359 | */ |
| 2360 | xmlChar * |
| 2361 | xmlBuildURI(const xmlChar *URI, const xmlChar *base) { |
| 2362 | xmlChar *out; |
| 2363 | |
| 2364 | xmlBuildURISafe(URI, base, &out); |
| 2365 | return(out); |
| 2366 | } |
| 2367 | |
| 2368 | static int |
| 2369 | xmlParseUriOrPath(const char *str, xmlURIPtr *out, int *drive) { |