Lines Matching refs:cur
289 xmlconfTestItem(xmlDocPtr doc, xmlNodePtr cur) {
308 id = xmlGetProp(cur, BAD_CAST "ID");
310 test_log("test missing ID, line %ld\n", xmlGetLineNo(cur));
321 type = xmlGetProp(cur, BAD_CAST "TYPE");
326 uri = xmlGetProp(cur, BAD_CAST "URI");
331 base = xmlNodeGetBase(doc, cur);
339 version = xmlGetProp(cur, BAD_CAST "VERSION");
341 entities = xmlGetProp(cur, BAD_CAST "ENTITIES");
346 rec = xmlGetProp(cur, BAD_CAST "RECOMMENDATION");
370 edition = xmlGetProp(cur, BAD_CAST "EDITION");
441 xmlconfTestCases(xmlDocPtr doc, xmlNodePtr cur, int level) {
448 profile = xmlGetProp(cur, BAD_CAST "PROFILE");
456 cur = cur->children;
457 while (cur != NULL) {
459 if (cur->type == XML_ELEMENT_NODE) {
460 if (xmlStrEqual(cur->name, BAD_CAST "TESTCASES")) {
461 ret += xmlconfTestCases(doc, cur, level);
462 } else if (xmlStrEqual(cur->name, BAD_CAST "TEST")) {
463 if (xmlconfTestItem(doc, cur) >= 0)
467 fprintf(stderr, "Unhandled element %s\n", (char *)cur->name);
470 cur = cur->next;
480 xmlconfTestSuite(xmlDocPtr doc, xmlNodePtr cur) {
484 profile = xmlGetProp(cur, BAD_CAST "PROFILE");
490 cur = cur->children;
491 while (cur != NULL) {
493 if (cur->type == XML_ELEMENT_NODE) {
494 if (xmlStrEqual(cur->name, BAD_CAST "TESTCASES")) {
495 ret += xmlconfTestCases(doc, cur, 1);
497 fprintf(stderr, "Unhandled element %s\n", (char *)cur->name);
500 cur = cur->next;
517 xmlNodePtr cur;
532 cur = xmlDocGetRootElement(doc);
533 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "TESTSUITE"))) {
538 ret = xmlconfTestSuite(doc, cur);