Lines Matching refs:nodep
158 xmlNodePtr nodep = NULL, oldnode = NULL; in PHP_METHOD() local
184 nodep = xmlNewNode (NULL, (xmlChar *)localname); in PHP_METHOD()
185 if (nodep != NULL && uri != NULL) { in PHP_METHOD()
186 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix); in PHP_METHOD()
187 xmlSetNs(nodep, nsptr); in PHP_METHOD()
195 if (nodep != NULL) { in PHP_METHOD()
196 xmlFreeNode(nodep); in PHP_METHOD()
210 nodep = xmlNewNode(NULL, (xmlChar *) name); in PHP_METHOD()
213 if (!nodep) { in PHP_METHOD()
219 xmlNodeSetContentLen(nodep, (xmlChar *) value, value_len); in PHP_METHOD()
228 php_libxml_increment_node_ptr((php_libxml_node_object *)intern, nodep, (void *)intern TSRMLS_CC); in PHP_METHOD()
240 xmlNodePtr nodep; in dom_element_tag_name_read() local
244 nodep = dom_object_get_node(obj); in dom_element_tag_name_read()
246 if (nodep == NULL) { in dom_element_tag_name_read()
252 ns = nodep->ns; in dom_element_tag_name_read()
256 qname = xmlStrcat(qname, nodep->name); in dom_element_tag_name_read()
260 ZVAL_STRING(*retval, (char *) nodep->name, 1); in dom_element_tag_name_read()
332 xmlNode *nodep; in PHP_FUNCTION() local
343 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
345 attr = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
375 xmlNode *nodep; in PHP_FUNCTION() local
396 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
398 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
403 attr = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
418 if (xmlNewNs(nodep, (xmlChar *)value, NULL)) { in PHP_FUNCTION()
422 attr = (xmlNodePtr)xmlSetProp(nodep, (xmlChar *) name, (xmlChar *)value); in PHP_FUNCTION()
441 xmlNodePtr nodep, attrp; in PHP_FUNCTION() local
450 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
452 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
457 attrp = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
489 xmlNodePtr nodep, attrp; in PHP_FUNCTION() local
498 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
500 attrp = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
515 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *) attrp->children, attrp->name); in PHP_FUNCTION()
517 attrp = xmlNewDocNode(nodep->doc, NULL, (xmlChar *)"xmlns", attrp->name); in PHP_FUNCTION()
535 xmlNode *nodep; in PHP_FUNCTION() local
544 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
546 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
558 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_FUNCTION()
563 existattrp = xmlHasProp(nodep, attrp->name); in PHP_FUNCTION()
577 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
582 xmlAddChild(nodep, (xmlNodePtr) attrp); in PHP_FUNCTION()
601 xmlNode *nodep; in PHP_FUNCTION() local
610 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
612 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
619 if (attrp->type != XML_ATTRIBUTE_NODE || attrp->parent != nodep) { in PHP_FUNCTION()
744 xmlNodePtr elemp, nodep = NULL; in PHP_FUNCTION() local
775 nodep = (xmlNodePtr) xmlHasNsProp(elemp, (xmlChar *) localname, (xmlChar *) uri); in PHP_FUNCTION()
776 if (nodep != NULL && nodep->type != XML_ATTRIBUTE_DECL) { in PHP_FUNCTION()
777 node_list_unlink(nodep->children TSRMLS_CC); in PHP_FUNCTION()
872 xmlNode *nodep; in PHP_FUNCTION() local
883 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
885 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
890 attrp = xmlHasNsProp(nodep, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
892 nsptr = dom_get_nsdecl(nodep, (xmlChar *)name); in PHP_FUNCTION()
959 xmlNode *nodep; in PHP_FUNCTION() local
969 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
971 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
983 if (!(attrp->doc == NULL || attrp->doc == nodep->doc)) { in PHP_FUNCTION()
990 existattrp = xmlHasNsProp(nodep, nsp->href, attrp->name); in PHP_FUNCTION()
992 existattrp = xmlHasProp(nodep, attrp->name); in PHP_FUNCTION()
1008 if (attrp->doc == NULL && nodep->doc != NULL) { in PHP_FUNCTION()
1013 xmlAddChild(nodep, (xmlNodePtr) attrp); in PHP_FUNCTION()
1060 xmlNode *nodep; in PHP_FUNCTION() local
1070 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
1072 attr = dom_get_dom1_attribute(nodep, (xmlChar *)name); in PHP_FUNCTION()
1145 xmlNode *nodep; in PHP_FUNCTION() local
1156 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
1158 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
1163 attrp = xmlHasNsProp(nodep, (xmlChar *)name, NULL); in PHP_FUNCTION()
1217 xmlNode *nodep; in PHP_FUNCTION() local
1226 DOM_GET_OBJ(nodep, id, xmlNodePtr, intern); in PHP_FUNCTION()
1228 if (dom_node_is_read_only(nodep) == SUCCESS) { in PHP_FUNCTION()
1235 if (attrp->parent != nodep) { in PHP_FUNCTION()