Lines Matching refs:nodep
36 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local
59 nodep = xmlNewNode (NULL, (xmlChar *)localname); in PHP_METHOD()
60 if (nodep != NULL && uri != NULL) { in PHP_METHOD()
61 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix); in PHP_METHOD()
62 xmlSetNs(nodep, nsptr); in PHP_METHOD()
70 if (nodep != NULL) { in PHP_METHOD()
71 xmlFreeNode(nodep); in PHP_METHOD()
85 nodep = xmlNewNode(NULL, (xmlChar *) name); in PHP_METHOD()
88 if (!nodep) { in PHP_METHOD()
94 xmlNodeSetContentLen(nodep, (xmlChar *) value, value_len); in PHP_METHOD()
102 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
113 xmlNodePtr nodep; in dom_element_tag_name_read() local
117 nodep = dom_object_get_node(obj); in dom_element_tag_name_read()
119 if (nodep == NULL) { in dom_element_tag_name_read()
124 ns = nodep->ns; in dom_element_tag_name_read()
128 qname = xmlStrcat(qname, nodep->name); in dom_element_tag_name_read()
132 ZVAL_STRING(retval, (char *) nodep->name); in dom_element_tag_name_read()
203 xmlNode *nodep; in PHP_METHOD() local
215 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD()
217 attr = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_METHOD()
246 xmlNode *nodep; in PHP_METHOD() local
269 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD()
271 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_METHOD()
276 attr = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_METHOD()
291 if (xmlNewNs(nodep, (xmlChar *)value, NULL)) { in PHP_METHOD()
295 attr = (xmlNodePtr)xmlSetProp(nodep, (xmlChar *) name, (xmlChar *)value); in PHP_METHOD()
313 xmlNodePtr nodep, attrp; in PHP_METHOD() local
323 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD()
325 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_METHOD()
330 attrp = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_METHOD()
361 xmlNodePtr nodep, attrp; in PHP_METHOD() local
372 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD()
374 attrp = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_METHOD()
383 (void) php_dom_create_fake_namespace_decl(nodep, original, return_value, intern); in PHP_METHOD()
396 xmlNode *nodep; in PHP_METHOD() local
406 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD()
408 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_METHOD()
420 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_METHOD()
425 existattrp = xmlHasProp(nodep, attrp->name); in PHP_METHOD()
439 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_METHOD()
444 xmlAddChild(nodep, (xmlNodePtr) attrp); in PHP_METHOD()
462 xmlNode *nodep; in PHP_METHOD() local
472 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD()
474 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_METHOD()
481 if (attrp->type != XML_ATTRIBUTE_NODE || attrp->parent != nodep) { in PHP_METHOD()
605 xmlNodePtr elemp, nodep = NULL; in PHP_METHOD() local
637 nodep = (xmlNodePtr) xmlHasNsProp(elemp, (xmlChar *) localname, (xmlChar *) uri); in PHP_METHOD()
638 if (nodep != NULL && nodep->type != XML_ATTRIBUTE_DECL) { in PHP_METHOD()
639 node_list_unlink(nodep->children); in PHP_METHOD()
774 static void dom_eliminate_ns(xmlNodePtr nodep, xmlNsPtr nsptr) in dom_eliminate_ns() argument
786 xmlNsPtr current_ns = nodep->nsDef; in dom_eliminate_ns()
788 nodep->nsDef = nsptr->next; in dom_eliminate_ns()
799 dom_set_old_ns(nodep->doc, nsptr); in dom_eliminate_ns()
801 dom_remove_eliminated_ns(nodep, nsptr); in dom_eliminate_ns()
810 xmlNode *nodep; in PHP_METHOD() local
822 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD()
824 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_METHOD()
829 attrp = xmlHasNsProp(nodep, (xmlChar *)name, (xmlChar *)uri); in PHP_METHOD()
831 nsptr = dom_get_nsdecl(nodep, (xmlChar *)name); in PHP_METHOD()
834 dom_eliminate_ns(nodep, nsptr); in PHP_METHOD()
903 xmlNode *nodep; in PHP_METHOD() local
914 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD()
916 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_METHOD()
928 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_METHOD()
935 existattrp = xmlHasNsProp(nodep, attrp->name, nsp->href); in PHP_METHOD()
937 existattrp = xmlHasProp(nodep, attrp->name); in PHP_METHOD()
953 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_METHOD()
958 xmlAddChild(nodep, (xmlNodePtr) attrp); in PHP_METHOD()
1004 xmlNode *nodep; in PHP_METHOD() local
1015 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD()
1017 attr = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_METHOD()
1087 xmlNode *nodep; in PHP_METHOD() local
1099 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD()
1101 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_METHOD()
1106 attrp = xmlHasNsProp(nodep, (xmlChar *)name, NULL); in PHP_METHOD()
1159 xmlNode *nodep; in PHP_METHOD() local
1169 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_METHOD()
1171 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_METHOD()
1178 if (attrp->parent != nodep) { in PHP_METHOD()