Home | History | Annotate | Download | only in libxml2

Lines Matching defs:URL

55     xmlChar              *URI; /* the fully resolved resource URL */
78 xmlChar * url; /* the current URL processed */
80 int urlMax; /* size of URL stack */
81 xmlChar * *urlTab; /* URL stack */
308 * @value: the url
310 * Pushes a new url on top of the url stack
329 xmlXIncludeErrMemory(ctxt, NULL, "adding URL");
340 xmlXIncludeErrMemory(ctxt, NULL, "adding URL");
344 ctxt->url = ctxt->urlTab[ctxt->urlNr] = xmlStrdup(value);
352 * Pops the top URL from the URL stack
363 ctxt->url = ctxt->urlTab[ctxt->urlNr - 1];
365 ctxt->url = NULL;
416 * @URL: the URL or file path
421 xmlXIncludeParseFile(xmlXIncludeCtxtPtr ctxt, const char *URL) {
452 inputStream = xmlLoadExternalEntity(URL, NULL, pctxt);
461 pctxt->directory = xmlParserGetDirectory(URL);
492 xmlChar *URL;
543 URI = xmlBuildURI(href, ctxt->doc->URL);
569 "failed build URL\n", NULL);
575 * Check the URL and remove any fragment identifier
606 URL = xmlSaveUri(uri);
609 if (URL == NULL) {
624 URL);
631 * Check the URL against the stack for recursions
635 if (xmlStrEqual(URL, ctxt->urlTab[i])) {
637 "detected a recursion in %s\n", URL);
643 URL, cur);
651 xmlFree(URL);
659 * @url: the associated URL
665 const xmlURL url ATTRIBUTE_UNUSED) {
672 if (xmlStrEqual(doc->URL, ctxt->urlTab[i]))
678 xmlGenericError(xmlGenericErrorContext, "Recursing in doc %s\n", doc->URL);
745 xmlGenericError(xmlGenericErrorContext, "Done recursing in doc %s\n", url);
753 * @url: the associated URL
758 xmlXIncludeAddTxt(xmlXIncludeCtxtPtr ctxt, xmlNodePtr txt, const xmlURL url) {
760 xmlGenericError(xmlGenericErrorContext, "Adding text %s\n", url);
793 ctxt->txturlTab[ctxt->txtNr] = xmlStrdup(url);
1394 * @url: the associated URL
1402 xmlXIncludeLoadDoc(xmlXIncludeCtxtPtr ctxt, const xmlChar *url, int nr) {
1405 xmlChar *URL;
1413 xmlGenericError(xmlGenericErrorContext, "Loading doc %s:%d\n", url, nr);
1416 * Check the URL and remove any fragment identifier
1418 uri = xmlParseURI((const char *)url);
1422 "invalid value URI %s\n", url);
1434 URL = xmlSaveUri(uri);
1436 if (URL == NULL) {
1440 "invalid value URI %s\n", url);
1444 "invalid value URI %s\n", url);
1454 if ((URL[0] == 0) || (URL[0] == '#') ||
1455 ((ctxt->doc != NULL) && (xmlStrEqual(URL, ctxt->doc->URL)))) {
1464 if ((xmlStrEqual(URL, ctxt->incTab[i]->URI)) &&
1468 printf("Already loaded %s\n", URL);
1478 printf("loading %s\n", URL);
1492 doc = xmlXIncludeParseFile(ctxt, (const char *)URL);
1497 xmlFree(URL);
1504 * It's possible that the requested URL has been mapped to a
1506 * To check for this, we compare the URL with that of the doc
1509 if (!xmlStrEqual(URL, doc->URL)) {
1510 xmlFree(URL);
1511 URL = xmlStrdup(doc->URL);
1514 if (xmlStrEqual(URL, ctxt->incTab[i]->URI)) {
1517 printf("Increasing %s count since reused\n", URL);
1541 xmlXIncludeRecurseDoc(ctxt, doc, URL);
1578 xmlFree(URL);
1589 xmlFree(URL);
1606 xmlFree(URL);
1613 xmlFree(URL);
1691 if ((doc != NULL) && (URL != NULL) &&
1700 * has a base specified, or the URL is relative
1709 curBase = xmlBuildRelativeURI(URL, ctxt->base);
1713 "trying to build relative URI from %s\n", URL);
1734 * URL of the document, then reset it to be
1737 if (xmlStrEqual(curBase, node->doc->URL)) {
1775 printf("freeing %s\n", ctxt->incTab[nr]->doc->URL);
1780 xmlFree(URL);
1787 * @url: the associated URL
1795 xmlXIncludeLoadTxt(xmlXIncludeCtxtPtr ctxt, const xmlChar *url, int nr) {
1799 xmlChar *URL;
1808 * Check the URL and remove any fragment identifier
1810 uri = xmlParseURI((const char *)url);
1813 "invalid value URI %s\n", url);
1823 URL = xmlSaveUri(uri);
1825 if (URL == NULL) {
1827 "invalid value URI %s\n", url);
1835 if (URL[0] == 0) {
1839 xmlFree(URL);
1847 if (xmlStrEqual(URL, ctxt->txturlTab[i])) {
1871 xmlFree(URL);
1881 inputStream = xmlLoadExternalEntity((const char*)URL, NULL, pctxt);
1884 xmlFree(URL);
1891 xmlFree(URL);
1923 "%s contains invalid char\n", URL);
1925 xmlFree(URL);
1937 xmlXIncludeAddTxt(ctxt, node, URL);
1945 xmlFree(URL);
2077 URI = xmlBuildURI(href, ctxt->doc->URL);
2097 XML_XINCLUDE_HREF_URI, "failed build URL\n", NULL);
2372 if (doc->URL != NULL) {
2373 ret = xmlXIncludeURLPush(ctxt, doc->URL);
2441 if (doc->URL != NULL)
2489 ctxt->base = xmlStrdup((xmlChar *)tree->doc->URL);