Lines Matching refs:nodep
94 static xmlNodePtr php_dom_create_fake_namespace_decl_node_ptr(xmlNodePtr nodep, xmlNsPtr original);
455 xmlNodePtr nodep = NULL; in php_dom_export_node() local
459 nodep = intern->node->node; in php_dom_export_node()
462 return nodep; in php_dom_export_node()
470 xmlNodePtr nodep = NULL; in PHP_FUNCTION() local
479 nodep = php_libxml_import_node(node); in PHP_FUNCTION()
481 if (nodep && nodeobj && (nodep->type == XML_ELEMENT_NODE || nodep->type == XML_ATTRIBUTE_NODE)) { in PHP_FUNCTION()
482 DOM_RET_OBJ((xmlNodePtr) nodep, &ret, (dom_object *)nodeobj); in PHP_FUNCTION()
1270 xmlNodePtr nodep; in dom_hierarchy() local
1280 nodep = parent; in dom_hierarchy()
1282 while (nodep) { in dom_hierarchy()
1283 if (nodep == child) { in dom_hierarchy()
1286 nodep = nodep->parent; in dom_hierarchy()
1311 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
1320 while (nodep != NULL && (*cur <= index || index == -1)) { in dom_get_elements_by_tag_name_ns_raw()
1321 if (nodep->type == XML_ELEMENT_NODE) { in dom_get_elements_by_tag_name_ns_raw()
1322 … if (xmlStrEqual(nodep->name, (xmlChar *)local) || xmlStrEqual((xmlChar *)"*", (xmlChar *)local)) { in dom_get_elements_by_tag_name_ns_raw()
1323 …if (ns_match_any || (!strcmp(ns, "") && nodep->ns == NULL) || (nodep->ns != NULL && xmlStrEqual(no… in dom_get_elements_by_tag_name_ns_raw()
1325 ret = nodep; in dom_get_elements_by_tag_name_ns_raw()
1331 ret = dom_get_elements_by_tag_name_ns_raw(nodep->children, ns, local, cur, index); in dom_get_elements_by_tag_name_ns_raw()
1336 nodep = nodep->next; in dom_get_elements_by_tag_name_ns_raw()
1343 static inline bool is_empty_node(xmlNodePtr nodep) in is_empty_node() argument
1345 xmlChar *strContent = xmlNodeGetContent(nodep); in is_empty_node()
1352 void dom_normalize (xmlNodePtr nodep) in dom_normalize() argument
1358 child = nodep->children; in dom_normalize()
1430 static void dom_reconcile_ns_internal(xmlDocPtr doc, xmlNodePtr nodep, xmlNodePtr search_parent) in dom_reconcile_ns_internal() argument
1435 if (nodep->nsDef != NULL) { in dom_reconcile_ns_internal()
1436 curns = nodep->nsDef; in dom_reconcile_ns_internal()
1444 nodep->nsDef = nsdftptr; in dom_reconcile_ns_internal()
1458 static void dom_libxml_reconcile_ensure_namespaces_are_declared(xmlNodePtr nodep) in dom_libxml_reconcile_ensure_namespaces_are_declared() argument
1466 xmlDOMWrapReconcileNamespaces(&dummy_ctxt, nodep, /* options */ 0); in dom_libxml_reconcile_ensure_namespaces_are_declared()
1468 xmlReconciliateNs(nodep->doc, nodep); in dom_libxml_reconcile_ensure_namespaces_are_declared()
1472 void dom_reconcile_ns(xmlDocPtr doc, xmlNodePtr nodep) /* {{{ */ in dom_reconcile_ns() argument
1476 if (nodep->type == XML_ELEMENT_NODE) { in dom_reconcile_ns()
1477 dom_reconcile_ns_internal(doc, nodep, nodep->parent); in dom_reconcile_ns()
1478 dom_libxml_reconcile_ensure_namespaces_are_declared(nodep); in dom_reconcile_ns()
1483 static void dom_reconcile_ns_list_internal(xmlDocPtr doc, xmlNodePtr nodep, xmlNodePtr last, xmlNod… in dom_reconcile_ns_list_internal() argument
1485 ZEND_ASSERT(nodep != NULL); in dom_reconcile_ns_list_internal()
1487 if (nodep->type == XML_ELEMENT_NODE) { in dom_reconcile_ns_list_internal()
1488 dom_reconcile_ns_internal(doc, nodep, search_parent); in dom_reconcile_ns_list_internal()
1489 if (nodep->children) { in dom_reconcile_ns_list_internal()
1490 …dom_reconcile_ns_list_internal(doc, nodep->children, nodep->last /* process the whole children lis… in dom_reconcile_ns_list_internal()
1493 if (nodep == last) { in dom_reconcile_ns_list_internal()
1496 nodep = nodep->next; in dom_reconcile_ns_list_internal()
1500 void dom_reconcile_ns_list(xmlDocPtr doc, xmlNodePtr nodep, xmlNodePtr last) in dom_reconcile_ns_list() argument
1502 dom_reconcile_ns_list_internal(doc, nodep, last, nodep->parent); in dom_reconcile_ns_list()
1507 dom_libxml_reconcile_ensure_namespaces_are_declared(nodep); in dom_reconcile_ns_list()
1508 if (nodep == last) { in dom_reconcile_ns_list()
1511 nodep = nodep->next; in dom_reconcile_ns_list()
1563 xmlNsPtr dom_get_ns(xmlNodePtr nodep, char *uri, int *errorcode, char *prefix) { in dom_get_ns() argument
1571 nsptr = xmlNewNs(nodep, (xmlChar *)uri, (xmlChar *)prefix); in dom_get_ns()
1613 static xmlNodePtr php_dom_create_fake_namespace_decl_node_ptr(xmlNodePtr nodep, xmlNsPtr original) in php_dom_create_fake_namespace_decl_node_ptr() argument
1619 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *) original->prefix, original->href); in php_dom_create_fake_namespace_decl_node_ptr()
1621 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *)"xmlns", original->href); in php_dom_create_fake_namespace_decl_node_ptr()
1624 attrp->parent = nodep; in php_dom_create_fake_namespace_decl_node_ptr()
1630 xmlNodePtr php_dom_create_fake_namespace_decl(xmlNodePtr nodep, xmlNsPtr original, zval *return_val… in php_dom_create_fake_namespace_decl() argument
1632 xmlNodePtr attrp = php_dom_create_fake_namespace_decl_node_ptr(nodep, original); in php_dom_create_fake_namespace_decl()