Lines Matching refs:nodep

93 static xmlNodePtr php_dom_create_fake_namespace_decl_node_ptr(xmlNodePtr nodep, xmlNsPtr original);
446 xmlNodePtr nodep = NULL; in php_dom_export_node() local
450 nodep = intern->node->node; in php_dom_export_node()
453 return nodep; in php_dom_export_node()
461 xmlNodePtr nodep = NULL; in PHP_FUNCTION() local
470 nodep = php_libxml_import_node(node); in PHP_FUNCTION()
472 if (nodep && nodeobj && (nodep->type == XML_ELEMENT_NODE || nodep->type == XML_ATTRIBUTE_NODE)) { in PHP_FUNCTION()
473 DOM_RET_OBJ((xmlNodePtr) nodep, &ret, (dom_object *)nodeobj); in PHP_FUNCTION()
1302 xmlNodePtr nodep; in dom_hierarchy() local
1312 nodep = parent; in dom_hierarchy()
1314 while (nodep) { in dom_hierarchy()
1315 if (nodep == child) { in dom_hierarchy()
1318 nodep = nodep->parent; in dom_hierarchy()
1343 xmlNode *dom_get_elements_by_tag_name_ns_raw(xmlNodePtr nodep, char *ns, char *local, int *cur, int… in dom_get_elements_by_tag_name_ns_raw() argument
1352 while (nodep != NULL && (*cur <= index || index == -1)) { in dom_get_elements_by_tag_name_ns_raw()
1353 if (nodep->type == XML_ELEMENT_NODE) { in dom_get_elements_by_tag_name_ns_raw()
1354 … if (xmlStrEqual(nodep->name, (xmlChar *)local) || xmlStrEqual((xmlChar *)"*", (xmlChar *)local)) { in dom_get_elements_by_tag_name_ns_raw()
1355 …if (ns_match_any || (!strcmp(ns, "") && nodep->ns == NULL) || (nodep->ns != NULL && xmlStrEqual(no… in dom_get_elements_by_tag_name_ns_raw()
1357 ret = nodep; in dom_get_elements_by_tag_name_ns_raw()
1363 ret = dom_get_elements_by_tag_name_ns_raw(nodep->children, ns, local, cur, index); in dom_get_elements_by_tag_name_ns_raw()
1368 nodep = nodep->next; in dom_get_elements_by_tag_name_ns_raw()
1375 static inline bool is_empty_node(xmlNodePtr nodep) in is_empty_node() argument
1377 xmlChar *strContent = xmlNodeGetContent(nodep); in is_empty_node()
1384 void dom_normalize (xmlNodePtr nodep) in dom_normalize() argument
1390 child = nodep->children; in dom_normalize()
1462 static void dom_reconcile_ns_internal(xmlDocPtr doc, xmlNodePtr nodep, xmlNodePtr search_parent) in dom_reconcile_ns_internal() argument
1467 if (nodep->nsDef != NULL) { in dom_reconcile_ns_internal()
1468 curns = nodep->nsDef; in dom_reconcile_ns_internal()
1476 nodep->nsDef = nsdftptr; in dom_reconcile_ns_internal()
1490 static void dom_libxml_reconcile_ensure_namespaces_are_declared(xmlNodePtr nodep) in dom_libxml_reconcile_ensure_namespaces_are_declared() argument
1498 xmlDOMWrapReconcileNamespaces(&dummy_ctxt, nodep, /* options */ 0); in dom_libxml_reconcile_ensure_namespaces_are_declared()
1500 xmlReconciliateNs(nodep->doc, nodep); in dom_libxml_reconcile_ensure_namespaces_are_declared()
1504 void dom_reconcile_ns(xmlDocPtr doc, xmlNodePtr nodep) /* {{{ */ in dom_reconcile_ns() argument
1508 if (nodep->type == XML_ELEMENT_NODE) { in dom_reconcile_ns()
1509 dom_reconcile_ns_internal(doc, nodep, nodep->parent); in dom_reconcile_ns()
1510 dom_libxml_reconcile_ensure_namespaces_are_declared(nodep); in dom_reconcile_ns()
1515 static void dom_reconcile_ns_list_internal(xmlDocPtr doc, xmlNodePtr nodep, xmlNodePtr last, xmlNod… in dom_reconcile_ns_list_internal() argument
1517 ZEND_ASSERT(nodep != NULL); in dom_reconcile_ns_list_internal()
1519 if (nodep->type == XML_ELEMENT_NODE) { in dom_reconcile_ns_list_internal()
1520 dom_reconcile_ns_internal(doc, nodep, search_parent); in dom_reconcile_ns_list_internal()
1521 if (nodep->children) { in dom_reconcile_ns_list_internal()
1522 …dom_reconcile_ns_list_internal(doc, nodep->children, nodep->last /* process the whole children lis… in dom_reconcile_ns_list_internal()
1525 if (nodep == last) { in dom_reconcile_ns_list_internal()
1528 nodep = nodep->next; in dom_reconcile_ns_list_internal()
1532 void dom_reconcile_ns_list(xmlDocPtr doc, xmlNodePtr nodep, xmlNodePtr last) in dom_reconcile_ns_list() argument
1534 dom_reconcile_ns_list_internal(doc, nodep, last, nodep->parent); in dom_reconcile_ns_list()
1539 dom_libxml_reconcile_ensure_namespaces_are_declared(nodep); in dom_reconcile_ns_list()
1540 if (nodep == last) { in dom_reconcile_ns_list()
1543 nodep = nodep->next; in dom_reconcile_ns_list()
1595 xmlNsPtr dom_get_ns(xmlNodePtr nodep, char *uri, int *errorcode, char *prefix) { in dom_get_ns() argument
1603 nsptr = xmlNewNs(nodep, (xmlChar *)uri, (xmlChar *)prefix); in dom_get_ns()
1645 static xmlNodePtr php_dom_create_fake_namespace_decl_node_ptr(xmlNodePtr nodep, xmlNsPtr original) in php_dom_create_fake_namespace_decl_node_ptr() argument
1651 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *) original->prefix, original->href); in php_dom_create_fake_namespace_decl_node_ptr()
1653 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *)"xmlns", original->href); in php_dom_create_fake_namespace_decl_node_ptr()
1656 attrp->parent = nodep; in php_dom_create_fake_namespace_decl_node_ptr()
1662 xmlNodePtr php_dom_create_fake_namespace_decl(xmlNodePtr nodep, xmlNsPtr original, zval *return_val… in php_dom_create_fake_namespace_decl() argument
1664 xmlNodePtr attrp = php_dom_create_fake_namespace_decl_node_ptr(nodep, original); in php_dom_create_fake_namespace_decl()