• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/libxml2-26/libxml2/

Lines Matching +defs:xml +defs:ns

2492  * Parse a file containing xml:id and check for errors and verify
2764 if ((URI == NULL) || (!strcmp(URI, "file:///etc/xml/catalog")))
2783 if ((URI == NULL) || (!strcmp(URI, "file:///etc/xml/catalog")))
3023 snprintf(pattern, 499, "./test/schemas/%s_?.xml", prefix);
3150 * Parse an RNG schemas and then apply it to the related .xml
3194 snprintf(pattern, 499, "./test/relaxng/%s_?.xml", prefix);
3283 snprintf(pattern, 499, "./test/relaxng/%s_?.xml", prefix);
3414 char xml[500];
3424 memcpy(xml, filename, len);
3425 xml[len] = 0;
3426 snprintf(result, 499, "result/pattern/%s", baseFilename(xml));
3428 memcpy(xml + len, ".xml", 5);
3430 if (!checkTestFile(xml)) {
3431 fprintf(stderr, "Missing xml file %s\n", xml);
3472 doc = xmlReadFile(xml, NULL, options);
3474 fprintf(stderr, "Failed to parse %s\n", xml);
3480 xmlNsPtr ns;
3483 for (ns = root->nsDef, j = 0;ns != NULL && j < 20;ns=ns->next) {
3484 namespaces[j++] = ns->href;
3485 namespaces[j++] = ns->prefix;
3557 xmlNsPtr ns;
3609 ns = node->nsDef;
3610 while(ns != NULL) {
3611 if(xmlXPathRegisterNs(ctx, ns->prefix, ns->href) != 0) {
3612 fprintf(stderr,"Error: unable to register NS with prefix=\"%s\" and href=\"%s\"\n", ns->prefix, ns->href);
3618 ns = ns->next;
3795 char *ns = NULL;
3814 snprintf(buf, 499, "test/c14n/%s/%s.ns", subdir,prefix);
3816 ns = strdup(buf);
3821 xpath, ns, result) < 0)
3826 if (ns != NULL) free(ns);
3871 static const char *catalog = "test/threads/complex.xml";
3873 "test/threads/abc.xml",
3874 "test/threads/acb.xml",
3875 "test/threads/bac.xml",
3876 "test/threads/bca.xml",
3877 "test/threads/cab.xml",
3878 "test/threads/cba.xml",
3879 "test/threads/invalid.xml",
3899 if (!strcmp(filename, "test/threads/invalid.xml")) {
3913 if (!strcmp(filename, "test/threads/invalid.xml")) {
4154 errParseTest, "./test/errors/*.xml", "result/errors/", "", ".err",
4158 streamParseTest, "./test/errors/*.xml", "result/errors/", NULL, ".str",
4210 streamParseTest, "./test/valid/*.xml", "result/valid/", NULL, ".err.rdr",
4255 { "xml:id regression tests" ,
4291 c14nWithCommentTest, "./test/c14n/with-comments/*.xml", NULL, NULL, NULL,
4294 c14nWithoutCommentTest, "./test/c14n/without-comments/*.xml", NULL, NULL, NULL,
4297 c14nExcWithoutCommentTest, "./test/c14n/exc-without-comments/*.xml", NULL, NULL, NULL,
4300 c14n11WithoutCommentTest, "./test/c14n/1-1-without-comments/*.xml", NULL, NULL, NULL,