• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/pyobjc-45/2.6/pyobjc/pyobjc-core/libxml2-src/

Lines Matching +defs:xml +defs:ns

2496  * Parse a file containing xml:id and check for errors and verify
2768 if ((URI == NULL) || (!strcmp(URI, "file:///etc/xml/catalog")))
2787 if ((URI == NULL) || (!strcmp(URI, "file:///etc/xml/catalog")))
3027 snprintf(pattern, 499, "./test/schemas/%s_?.xml", prefix);
3154 * Parse an RNG schemas and then apply it to the related .xml
3198 snprintf(pattern, 499, "./test/relaxng/%s_?.xml", prefix);
3287 snprintf(pattern, 499, "./test/relaxng/%s_?.xml", prefix);
3416 char xml[500];
3426 memcpy(xml, filename, len);
3427 xml[len] = 0;
3428 snprintf(result, 499, "result/pattern/%s", baseFilename(xml));
3430 memcpy(xml + len, ".xml", 5);
3432 if (!checkTestFile(xml)) {
3433 fprintf(stderr, "Missing xml file %s\n", xml);
3474 doc = xmlReadFile(xml, NULL, options);
3476 fprintf(stderr, "Failed to parse %s\n", xml);
3482 xmlNsPtr ns;
3485 for (ns = root->nsDef, j = 0;ns != NULL && j < 20;ns=ns->next) {
3486 namespaces[j++] = ns->href;
3487 namespaces[j++] = ns->prefix;
3559 xmlNsPtr ns;
3611 ns = node->nsDef;
3612 while(ns != NULL) {
3613 if(xmlXPathRegisterNs(ctx, ns->prefix, ns->href) != 0) {
3614 fprintf(stderr,"Error: unable to register NS with prefix=\"%s\" and href=\"%s\"\n", ns->prefix, ns->href);
3620 ns = ns->next;
3797 char *ns = NULL;
3816 snprintf(buf, 499, "test/c14n/%s/%s.ns", subdir,prefix);
3818 ns = strdup(buf);
3823 xpath, ns, result) < 0)
3828 if (ns != NULL) free(ns);
3873 static const char *catalog = "test/threads/complex.xml";
3875 "test/threads/abc.xml",
3876 "test/threads/acb.xml",
3877 "test/threads/bac.xml",
3878 "test/threads/bca.xml",
3879 "test/threads/cab.xml",
3880 "test/threads/cba.xml",
3881 "test/threads/invalid.xml",
3901 if (!strcmp(filename, "test/threads/invalid.xml")) {
3915 if (!strcmp(filename, "test/threads/invalid.xml")) {
4156 errParseTest, "./test/errors/*.xml", "result/errors/", "", ".err",
4160 streamParseTest, "./test/errors/*.xml", "result/errors/", NULL, ".str",
4249 { "xml:id regression tests" ,
4285 c14nWithCommentTest, "./test/c14n/with-comments/*.xml", NULL, NULL, NULL,
4288 c14nWithoutCommentTest, "./test/c14n/without-comments/*.xml", NULL, NULL, NULL,
4291 c14nExcWithoutCommentTest, "./test/c14n/exc-without-comments/*.xml", NULL, NULL, NULL,
4294 c14n11WithoutCommentTest, "./test/c14n/1-1-without-comments/*.xml", NULL, NULL, NULL,