Lines Matching refs:nodep
158 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local
181 nodep = xmlNewNode (NULL, (xmlChar *)localname); in PHP_METHOD()
182 if (nodep != NULL && uri != NULL) { in PHP_METHOD()
183 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix); in PHP_METHOD()
184 xmlSetNs(nodep, nsptr); in PHP_METHOD()
192 if (nodep != NULL) { in PHP_METHOD()
193 xmlFreeNode(nodep); in PHP_METHOD()
207 nodep = xmlNewNode(NULL, (xmlChar *) name); in PHP_METHOD()
210 if (!nodep) { in PHP_METHOD()
216 xmlNodeSetContentLen(nodep, (xmlChar *) value, value_len); in PHP_METHOD()
224 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern); in PHP_METHOD()
235 xmlNodePtr nodep; in dom_element_tag_name_read() local
239 nodep = dom_object_get_node(obj); in dom_element_tag_name_read()
241 if (nodep == NULL) { in dom_element_tag_name_read()
246 ns = nodep->ns; in dom_element_tag_name_read()
250 qname = xmlStrcat(qname, nodep->name); in dom_element_tag_name_read()
254 ZVAL_STRING(retval, (char *) nodep->name); in dom_element_tag_name_read()
325 xmlNode *nodep; in PHP_FUNCTION() local
336 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
338 attr = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
368 xmlNode *nodep; in PHP_FUNCTION() local
390 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
392 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
397 attr = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
412 if (xmlNewNs(nodep, (xmlChar *)value, NULL)) { in PHP_FUNCTION()
416 attr = (xmlNodePtr)xmlSetProp(nodep, (xmlChar *) name, (xmlChar *)value); in PHP_FUNCTION()
435 xmlNodePtr nodep, attrp; in PHP_FUNCTION() local
444 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
446 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
451 attrp = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
483 xmlNodePtr nodep, attrp; in PHP_FUNCTION() local
493 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
495 attrp = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
510 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *) attrp->children, attrp->name); in PHP_FUNCTION()
512 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *)"xmlns", attrp->name); in PHP_FUNCTION()
530 xmlNode *nodep; in PHP_FUNCTION() local
539 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
541 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
553 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_FUNCTION()
558 existattrp = xmlHasProp(nodep, attrp->name); in PHP_FUNCTION()
572 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
577 xmlAddChild(nodep, (xmlNodePtr) attrp); in PHP_FUNCTION()
596 xmlNode *nodep; in PHP_FUNCTION() local
605 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
607 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
614 if (attrp->type != XML_ATTRIBUTE_NODE || attrp->parent != nodep) { in PHP_FUNCTION()
739 xmlNodePtr elemp, nodep = NULL; in PHP_FUNCTION() local
770 nodep = (xmlNodePtr) xmlHasNsProp(elemp, (xmlChar *) localname, (xmlChar *) uri); in PHP_FUNCTION()
771 if (nodep != NULL && nodep->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
772 node_list_unlink(nodep->children); in PHP_FUNCTION()
867 xmlNode *nodep; in PHP_FUNCTION() local
878 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
880 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
885 attrp = xmlHasNsProp(nodep, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
887 nsptr = dom_get_nsdecl(nodep, (xmlChar *)name); in PHP_FUNCTION()
979 xmlNode *nodep; in PHP_FUNCTION() local
989 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
991 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
1003 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_FUNCTION()
1010 existattrp = xmlHasNsProp(nodep, nsp->href, attrp->name); in PHP_FUNCTION()
1012 existattrp = xmlHasProp(nodep, attrp->name); in PHP_FUNCTION()
1028 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1033 xmlAddChild(nodep, (xmlNodePtr) attrp); in PHP_FUNCTION()
1080 xmlNode *nodep; in PHP_FUNCTION() local
1090 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
1092 attr = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
1165 xmlNode *nodep; in PHP_FUNCTION() local
1176 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
1178 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
1183 attrp = xmlHasNsProp(nodep, (xmlChar *)name, NULL); in PHP_FUNCTION()
1237 xmlNode *nodep; in PHP_FUNCTION() local
1246 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
1248 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
1255 if (attrp->parent != nodep) { in PHP_FUNCTION()