亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? debugxml.c

?? xml開(kāi)源解析代碼.版本為libxml2-2.6.29,可支持GB3212.網(wǎng)絡(luò)消息發(fā)送XML時(shí)很有用.
?? C
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
/** * xmlShellPrintXPathResultCtxt: * @ctxt: a valid shell context * @list: a valid result generated by an xpath evaluation * * Prints result to the output FILE */static voidxmlShellPrintXPathResultCtxt(xmlShellCtxtPtr ctxt,xmlXPathObjectPtr list){    if (!ctxt)       return;    if (list != NULL) {        switch (list->type) {            case XPATH_NODESET:{#ifdef LIBXML_OUTPUT_ENABLED                    int indx;                    if (list->nodesetval) {                        for (indx = 0; indx < list->nodesetval->nodeNr;                             indx++) {                            xmlShellPrintNodeCtxt(ctxt,				    list->nodesetval->nodeTab[indx]);                        }                    } else {                        xmlGenericError(xmlGenericErrorContext,                                        "Empty node set\n");                    }                    break;#else		    xmlGenericError(xmlGenericErrorContext,				    "Node set\n");#endif /* LIBXML_OUTPUT_ENABLED */                }            case XPATH_BOOLEAN:                xmlGenericError(xmlGenericErrorContext,                                "Is a Boolean:%s\n",                                xmlBoolToText(list->boolval));                break;            case XPATH_NUMBER:                xmlGenericError(xmlGenericErrorContext,                                "Is a number:%0g\n", list->floatval);                break;            case XPATH_STRING:                xmlGenericError(xmlGenericErrorContext,                                "Is a string:%s\n", list->stringval);                break;            default:                xmlShellPrintXPathError(list->type, NULL);        }    }}/** * xmlShellPrintXPathResult: * @list: a valid result generated by an xpath evaluation * * Prints result to the output FILE */voidxmlShellPrintXPathResult(xmlXPathObjectPtr list){    xmlShellPrintXPathResultCtxt(NULL, list);}/** * xmlShellList: * @ctxt:  the shell context * @arg:  unused * @node:  a node * @node2:  unused * * Implements the XML shell function "ls" * Does an Unix like listing of the given node (like a directory) * * Returns 0 */intxmlShellList(xmlShellCtxtPtr ctxt,             char *arg ATTRIBUTE_UNUSED, xmlNodePtr node,             xmlNodePtr node2 ATTRIBUTE_UNUSED){    xmlNodePtr cur;    if (!ctxt)        return (0);    if (node == NULL) {	fprintf(ctxt->output, "NULL\n");	return (0);    }    if ((node->type == XML_DOCUMENT_NODE) ||        (node->type == XML_HTML_DOCUMENT_NODE)) {        cur = ((xmlDocPtr) node)->children;    } else if (node->type == XML_NAMESPACE_DECL) {        xmlLsOneNode(ctxt->output, node);        return (0);    } else if (node->children != NULL) {        cur = node->children;    } else {        xmlLsOneNode(ctxt->output, node);        return (0);    }    while (cur != NULL) {        xmlLsOneNode(ctxt->output, cur);        cur = cur->next;    }    return (0);}/** * xmlShellBase: * @ctxt:  the shell context * @arg:  unused * @node:  a node * @node2:  unused * * Implements the XML shell function "base" * dumps the current XML base of the node * * Returns 0 */intxmlShellBase(xmlShellCtxtPtr ctxt,             char *arg ATTRIBUTE_UNUSED, xmlNodePtr node,             xmlNodePtr node2 ATTRIBUTE_UNUSED){    xmlChar *base;    if (!ctxt)        return 0;    if (node == NULL) {	fprintf(ctxt->output, "NULL\n");	return (0);    }        base = xmlNodeGetBase(node->doc, node);    if (base == NULL) {        fprintf(ctxt->output, " No base found !!!\n");    } else {        fprintf(ctxt->output, "%s\n", base);        xmlFree(base);    }    return (0);}#ifdef LIBXML_TREE_ENABLED/** * xmlShellSetBase: * @ctxt:  the shell context * @arg:  the new base * @node:  a node * @node2:  unused * * Implements the XML shell function "setbase" * change the current XML base of the node * * Returns 0 */static intxmlShellSetBase(xmlShellCtxtPtr ctxt ATTRIBUTE_UNUSED,             char *arg ATTRIBUTE_UNUSED, xmlNodePtr node,             xmlNodePtr node2 ATTRIBUTE_UNUSED){    xmlNodeSetBase(node, (xmlChar*) arg);    return (0);}#endif#ifdef LIBXML_XPATH_ENABLED/** * xmlShellRegisterNamespace: * @ctxt:  the shell context * @arg:  a string in prefix=nsuri format * @node:  unused * @node2:  unused * * Implements the XML shell function "setns" * register/unregister a prefix=namespace pair * on the XPath context * * Returns 0 on success and a negative value otherwise. */static intxmlShellRegisterNamespace(xmlShellCtxtPtr ctxt, char *arg,      xmlNodePtr node ATTRIBUTE_UNUSED, xmlNodePtr node2 ATTRIBUTE_UNUSED){    xmlChar* nsListDup;    xmlChar* prefix;    xmlChar* href;    xmlChar* next;    nsListDup = xmlStrdup((xmlChar *) arg);    next = nsListDup;    while(next != NULL) {	/* skip spaces */	/*while((*next) == ' ') next++;*/	if((*next) == '\0') break;	/* find prefix */	prefix = next;	next = (xmlChar*)xmlStrchr(next, '=');	if(next == NULL) {	    fprintf(ctxt->output, "setns: prefix=[nsuri] required\n");	    xmlFree(nsListDup);	    return(-1);	}	*(next++) = '\0';	/* find href */	href = next;	next = (xmlChar*)xmlStrchr(next, ' ');	if(next != NULL) {	    *(next++) = '\0';	}	/* do register namespace */	if(xmlXPathRegisterNs(ctxt->pctxt, prefix, href) != 0) {	    fprintf(ctxt->output,"Error: unable to register NS with prefix=\"%s\" and href=\"%s\"\n", prefix, href);	    xmlFree(nsListDup);	    return(-1);	}    }    xmlFree(nsListDup);    return(0);}/** * xmlShellRegisterRootNamespaces: * @ctxt:  the shell context * @arg:  unused * @node:  the root element * @node2:  unused * * Implements the XML shell function "setrootns" * which registers all namespaces declarations found on the root element. * * Returns 0 on success and a negative value otherwise. */static intxmlShellRegisterRootNamespaces(xmlShellCtxtPtr ctxt, char *arg ATTRIBUTE_UNUSED,      xmlNodePtr root, xmlNodePtr node2 ATTRIBUTE_UNUSED){    xmlNsPtr ns;    if ((root == NULL) || (root->type != XML_ELEMENT_NODE) ||        (root->nsDef == NULL) || (ctxt == NULL) || (ctxt->pctxt == NULL))	return(-1);    ns = root->nsDef;    while (ns != NULL) {        if (ns->prefix == NULL)	    xmlXPathRegisterNs(ctxt->pctxt, BAD_CAST "defaultns", ns->href);	else	    xmlXPathRegisterNs(ctxt->pctxt, ns->prefix, ns->href);        ns = ns->next;    }    return(0);}#endif/** * xmlShellGrep: * @ctxt:  the shell context * @arg:  the string or regular expression to find * @node:  a node * @node2:  unused * * Implements the XML shell function "grep" * dumps informations about the node (namespace, attributes, content). * * Returns 0 */static intxmlShellGrep(xmlShellCtxtPtr ctxt ATTRIBUTE_UNUSED,            char *arg, xmlNodePtr node, xmlNodePtr node2 ATTRIBUTE_UNUSED){    if (!ctxt)        return (0);    if (node == NULL)	return (0);    if (arg == NULL)	return (0);#ifdef LIBXML_REGEXP_ENABLED    if ((xmlStrchr((xmlChar *) arg, '?')) ||	(xmlStrchr((xmlChar *) arg, '*')) ||	(xmlStrchr((xmlChar *) arg, '.')) ||	(xmlStrchr((xmlChar *) arg, '['))) {    }#endif    while (node != NULL) {        if (node->type == XML_COMMENT_NODE) {	    if (xmlStrstr(node->content, (xmlChar *) arg)) {		fprintf(ctxt->output, "%s : ", xmlGetNodePath(node));                xmlShellList(ctxt, NULL, node, NULL);	    }        } else if (node->type == XML_TEXT_NODE) {	    if (xmlStrstr(node->content, (xmlChar *) arg)) {		fprintf(ctxt->output, "%s : ", xmlGetNodePath(node->parent));                xmlShellList(ctxt, NULL, node->parent, NULL);	    }        }        /*         * Browse the full subtree, deep first         */        if ((node->type == XML_DOCUMENT_NODE) ||            (node->type == XML_HTML_DOCUMENT_NODE)) {            node = ((xmlDocPtr) node)->children;        } else if ((node->children != NULL)                   && (node->type != XML_ENTITY_REF_NODE)) {            /* deep first */            node = node->children;        } else if (node->next != NULL) {            /* then siblings */            node = node->next;        } else {            /* go up to parents->next if needed */            while (node != NULL) {                if (node->parent != NULL) {                    node = node->parent;                }                if (node->next != NULL) {                    node = node->next;                    break;                }                if (node->parent == NULL) {                    node = NULL;                    break;                }            }	}    }    return (0);}/** * xmlShellDir: * @ctxt:  the shell context * @arg:  unused * @node:  a node * @node2:  unused * * Implements the XML shell function "dir" * dumps informations about the node (namespace, attributes, content). * * Returns 0 */intxmlShellDir(xmlShellCtxtPtr ctxt ATTRIBUTE_UNUSED,            char *arg ATTRIBUTE_UNUSED, xmlNodePtr node,            xmlNodePtr node2 ATTRIBUTE_UNUSED){    if (!ctxt)        return (0);    if (node == NULL) {	fprintf(ctxt->output, "NULL\n");	return (0);    }        if ((node->type == XML_DOCUMENT_NODE) ||        (node->type == XML_HTML_DOCUMENT_NODE)) {        xmlDebugDumpDocumentHead(ctxt->output, (xmlDocPtr) node);    } else if (node->type == XML_ATTRIBUTE_NODE) {        xmlDebugDumpAttr(ctxt->output, (xmlAttrPtr) node, 0);    } else {        xmlDebugDumpOneNode(ctxt->output, node, 0);    }    return (0);}/** * xmlShellSetContent: * @ctxt:  the shell context * @value:  the content as a string * @node:  a node * @node2:  unused * * Implements the XML shell function "dir" * dumps informations about the node (namespace, attributes, content). * * Returns 0 */static intxmlShellSetContent(xmlShellCtxtPtr ctxt ATTRIBUTE_UNUSED,            char *value, xmlNodePtr node,            xmlNodePtr node2 ATTRIBUTE_UNUSED){    xmlNodePtr results;    xmlParserErrors ret;    if (!ctxt)        return (0);    if (node == NULL) {	fprintf(ctxt->output, "NULL\n");	return (0);    }    if (value == NULL) {        fprintf(ctxt->output, "NULL\n");	return (0);    }    ret = xmlParseInNodeContext(node, value, strlen(value), 0, &results);    if (ret == XML_ERR_OK) {	if (node->children != NULL) {	    xmlFreeNodeList(node->children);	    node->children = NULL;	    node->last = NULL;	}	xmlAddChildList(node, results);    } else {        fprintf(ctxt->output, "failed to parse content\n");    }    return (0);}#ifdef LIBXML_SCHEMAS_ENABLED/** * xmlShellRNGValidate: * @ctxt:  the shell context * @schemas:  the path to the Relax-NG schemas * @node:  a node * @node2:  unused * * Implements the XML shell function "relaxng" * validating the instance against a Relax-NG schemas * * Returns 0 */static intxmlShellRNGValidate(xmlShellCtxtPtr sctxt, char *schemas,            xmlNodePtr node ATTRIBUTE_UNUSED,	    xmlNodePtr node2 ATTRIBUTE_UNUSED){    xmlRelaxNGPtr relaxngschemas;    xmlRelaxNGParserCtxtPtr ctxt;    xmlRelaxNGValidCtxtPtr vctxt;    int ret;    ctxt = xmlRelaxNGNewParserCtxt(schemas);    xmlRelaxNGSetParserErrors(ctxt,	    (xmlRelaxNGValidityErrorFunc) fprintf,	    (xmlRelaxNGValidityWarningFunc) fprintf,	    stderr);    relaxngschemas = xmlRelaxNGParse(ctxt);    xmlRelaxNGFreeParserCtxt(ctxt);    if (relaxngschemas == NULL) {	xmlGenericError(xmlGenericErrorContext,		"Relax-NG schema %s failed to compile\n", schemas);	return(-1);    }    vctxt = xmlRelaxNGNewValidCtxt(relaxngschemas);    xmlRelaxNGSetValidErrors(vctxt,	    (xmlRelaxNGValidityErrorFunc) fprintf,	    (xmlRelaxNGValidityWarningFunc) fprintf,	    stderr);    ret = xmlRelaxNGValidateDoc(vctxt, sctxt->doc);    if (ret == 0) {	fprintf(stderr, "%s validates\n", sctxt->filename);    } else if (ret > 0) {	fprintf(stderr, "%s fails to validate\n", sctxt->filename);    } else {	fprintf(stderr, "%s validation generated an internal error\n",	       sctxt->filename);    }    xmlRelaxNGFreeValidCtxt(vctxt);    if (relaxngschemas != NULL)	xmlRelaxNGFree(relaxngschemas);    return(0);}#endif#ifdef LIBXML_OUTPUT_ENABLED/** * xmlShellCat: * @ctxt:  the shell context * @arg:  unused * @node:  a node

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产色产综合产在线视频| 国产99久久久精品| 欧美色偷偷大香| 一区二区中文字幕在线| 国产suv精品一区二区883| 精品美女在线观看| 九九久久精品视频| 日韩精品在线一区| 蜜臀a∨国产成人精品| 在线播放国产精品二区一二区四区| 综合久久给合久久狠狠狠97色| 风间由美一区二区av101| 国产三级三级三级精品8ⅰ区| 国产一区二区美女诱惑| 久久人人超碰精品| 成人综合激情网| 国产精品无遮挡| 国产.精品.日韩.另类.中文.在线.播放 | 性久久久久久久久久久久| 欧美日韩免费不卡视频一区二区三区| 亚洲资源中文字幕| 欧美一区二区三区视频在线| 精品一区二区久久| 亚洲欧洲在线观看av| 91精品福利在线| 免费观看成人鲁鲁鲁鲁鲁视频| 欧美mv日韩mv| 成人av集中营| 亚洲成人动漫精品| 久久久久成人黄色影片| 91在线精品一区二区三区| 亚洲大片一区二区三区| 日韩精品影音先锋| 91久久精品午夜一区二区| 日本视频一区二区| 欧美国产精品中文字幕| 在线观看网站黄不卡| 狠狠色综合色综合网络| 亚洲精品国产高清久久伦理二区| 日韩一级二级三级| 91久久香蕉国产日韩欧美9色| 美女脱光内衣内裤视频久久网站 | 一区二区高清视频在线观看| 欧美成人精品1314www| 日本精品视频一区二区| 国产一区二区剧情av在线| 五月激情综合网| 亚洲视频图片小说| 欧美国产日韩一二三区| 日韩一区二区在线看片| 欧美日韩三级视频| 成年人国产精品| 国产激情一区二区三区| 奇米精品一区二区三区在线观看 | 成人福利视频在线看| 美女视频黄 久久| 亚洲高清视频的网址| ...中文天堂在线一区| 国产精品久久久久久久久晋中| 欧美精品一区二区久久婷婷| 欧美一区二区视频在线观看| 欧美系列在线观看| 色婷婷国产精品综合在线观看| 国产91在线看| 成人激情动漫在线观看| 成人黄色一级视频| 成人av中文字幕| 99久久婷婷国产综合精品| 成人午夜电影小说| av在线综合网| 色婷婷激情久久| 欧美三级三级三级爽爽爽| 欧美精品丝袜久久久中文字幕| 欧美片网站yy| 91精品在线观看入口| 日韩欧美专区在线| 2020国产精品自拍| 国产精品热久久久久夜色精品三区| 久久久欧美精品sm网站| 中文字幕视频一区| 亚洲一区精品在线| 精品一区二区成人精品| 国产不卡高清在线观看视频| 色国产精品一区在线观看| 欧美网站一区二区| 欧美一级日韩一级| 欧美高清一级片在线观看| 亚洲老司机在线| 久久99国产精品免费| 国产麻豆一精品一av一免费| 色婷婷综合久久| 91精品国产综合久久小美女| 日本一区二区三区四区| 亚洲一区免费观看| 国产福利91精品一区| 色久综合一二码| 久久久久久久一区| 亚洲一区二区三区免费视频| 国产精品一区二区在线看| 欧美在线看片a免费观看| 国产午夜一区二区三区| 亚洲成人av一区二区三区| 福利91精品一区二区三区| 日韩欧美在线123| 亚洲三级免费观看| 欧美成人综合网站| 日韩精品一区二区三区swag | 91精品国产一区二区人妖| 国产女同性恋一区二区| 麻豆精品视频在线观看| 91传媒视频在线播放| 国产精品视频yy9299一区| 久久精品99国产国产精| 欧美日韩亚洲另类| 一区二区三区欧美激情| 不卡电影一区二区三区| 中文字幕免费观看一区| 久久精品国产澳门| 91精品国产欧美一区二区成人| 专区另类欧美日韩| 成人午夜视频网站| 久久久青草青青国产亚洲免观| 久草中文综合在线| 精品久久久久99| 国内精品伊人久久久久影院对白| 日韩免费观看高清完整版| 精品综合免费视频观看| 欧美大白屁股肥臀xxxxxx| 理论电影国产精品| www国产精品av| 粉嫩aⅴ一区二区三区四区五区| 国产精品美女视频| 99国产精品国产精品毛片| 一区二区三区免费观看| 欧美日韩一区二区三区不卡| 亚洲超碰精品一区二区| 日韩一级免费一区| 国内成人免费视频| 国产女主播一区| 欧美系列日韩一区| 美女视频黄久久| 国产精品三级视频| 欧亚一区二区三区| 久色婷婷小香蕉久久| 国产欧美一区二区在线| 91影视在线播放| 天堂蜜桃91精品| 国产视频一区二区三区在线观看| 91色综合久久久久婷婷| 午夜久久电影网| 国产精品午夜免费| 欧美精品成人一区二区三区四区| 国产美女精品一区二区三区| 亚洲猫色日本管| www国产精品av| 欧美久久久久久久久中文字幕| 国产精品影音先锋| 亚洲一区自拍偷拍| 久久久www成人免费毛片麻豆| 在线免费不卡视频| 国产精品一区在线观看你懂的| 亚洲在线视频一区| 国产精品美女久久久久久久网站| 欧美一区二区久久| 在线中文字幕一区二区| 亚洲午夜电影在线| 国产精品初高中害羞小美女文| 日韩女优毛片在线| 欧美日韩一区二区三区四区| 99热99精品| 成人高清av在线| 东方欧美亚洲色图在线| 国内外成人在线| 另类人妖一区二区av| 日本不卡一区二区| 亚洲综合成人在线| 亚洲欧美国产高清| 18成人在线观看| 亚洲欧洲av另类| 国产精品的网站| 亚洲六月丁香色婷婷综合久久| 日韩伦理av电影| 亚洲美女电影在线| 亚洲激情中文1区| 亚洲精品成a人| 午夜亚洲福利老司机| 午夜成人免费电影| 亚洲二区在线视频| 污片在线观看一区二区| 免费在线观看精品| 日本不卡一区二区三区| 美女视频网站黄色亚洲| 精品亚洲aⅴ乱码一区二区三区| 国产在线麻豆精品观看| 国产一区不卡精品| 国产高清久久久久| 99精品视频在线观看免费| jlzzjlzz欧美大全| 91福利社在线观看| 欧美剧情片在线观看|