Lines Matching refs:node
57 static xmlNodePtr php_sxe_iterator_fetch(php_sxe_object *sxe, xmlNodePtr node, int use_data TSRMLS_…
68 static void _node_as_zval(php_sxe_object *sxe, xmlNodePtr node, zval *value, SXE_ITER itertype, cha… in _node_as_zval() argument
84 php_libxml_increment_node_ptr((php_libxml_node_object *)subnode, node, NULL TSRMLS_CC); in _node_as_zval()
103 if ((__s)->node && (__s)->node->node) { \
104 __n = (__s)->node->node; \
111 static xmlNodePtr php_sxe_get_first_node(php_sxe_object *sxe, xmlNodePtr node TSRMLS_DC) /* {{{ */ in php_sxe_get_first_node()
124 return node; in php_sxe_get_first_node()
129 static inline int match_ns(php_sxe_object *sxe, xmlNodePtr node, xmlChar *name, int prefix) /* {{{ … in match_ns() argument
131 if (name == NULL && (node->ns == NULL || node->ns->prefix == NULL)) { in match_ns()
135 if (node->ns && !xmlStrcmp(prefix ? node->ns->prefix : node->ns->href, name)) { in match_ns()
143 static xmlNodePtr sxe_get_element_by_offset(php_sxe_object *sxe, long offset, xmlNodePtr node, long… in sxe_get_element_by_offset() argument
152 return node; in sxe_get_element_by_offset()
157 while (node && nodendx <= offset) { in sxe_get_element_by_offset()
158 SKIP_TEXT(node) in sxe_get_element_by_offset()
159 …if (node->type == XML_ELEMENT_NODE && match_ns(sxe, node, sxe->iter.nsprefix, sxe->iter.isprefix))… in sxe_get_element_by_offset()
161 sxe->iter.type == SXE_ITER_ELEMENT && !xmlStrcmp(node->name, sxe->iter.name))) { in sxe_get_element_by_offset()
169 node = node->next; in sxe_get_element_by_offset()
176 return node; in sxe_get_element_by_offset()
180 static xmlNodePtr sxe_find_element_by_name(php_sxe_object *sxe, xmlNodePtr node, xmlChar *name TSRM… in sxe_find_element_by_name() argument
182 while (node) { in sxe_find_element_by_name()
183 SKIP_TEXT(node) in sxe_find_element_by_name()
184 …if (node->type == XML_ELEMENT_NODE && match_ns(sxe, node, sxe->iter.nsprefix, sxe->iter.isprefix))… in sxe_find_element_by_name()
185 if (!xmlStrcmp(node->name, name)) { in sxe_find_element_by_name()
186 return node; in sxe_find_element_by_name()
190 node = node->next; in sxe_find_element_by_name()
195 static xmlNodePtr sxe_get_element_by_name(php_sxe_object *sxe, xmlNodePtr node, char **name, SXE_IT… in sxe_get_element_by_name() argument
198 xmlNodePtr orgnode = node; in sxe_get_element_by_name()
207 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_get_element_by_name()
212 orgnode = sxe_find_element_by_name(sxe, node, sxe->iter.name TSRMLS_CC); in sxe_get_element_by_name()
216 node = orgnode->children; in sxe_get_element_by_name()
219 while (node) { in sxe_get_element_by_name()
220 SKIP_TEXT(node) in sxe_get_element_by_name()
221 …if (node->type == XML_ELEMENT_NODE && match_ns(sxe, node, sxe->iter.nsprefix, sxe->iter.isprefix))… in sxe_get_element_by_name()
222 if (!xmlStrcmp(node->name, (xmlChar *)*name)) { in sxe_get_element_by_name()
228 retnode = node; in sxe_get_element_by_name()
232 node = node->next; in sxe_get_element_by_name()
253 xmlNodePtr node; in sxe_prop_dim_read() local
281 GET_NODE(sxe, node); in sxe_prop_dim_read()
286 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_prop_dim_read()
287 attr = (xmlAttrPtr)node; in sxe_prop_dim_read()
290 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_prop_dim_read()
291 attr = node ? node->properties : NULL; in sxe_prop_dim_read()
293 if (!member && node && node->parent && in sxe_prop_dim_read()
294 node->parent->type == XML_DOCUMENT_NODE) { in sxe_prop_dim_read()
304 if (node) { in sxe_prop_dim_read()
331 if (!sxe->node) { in sxe_prop_dim_read()
332 php_libxml_increment_node_ptr((php_libxml_node_object *)sxe, node, NULL TSRMLS_CC); in sxe_prop_dim_read()
336 xmlNodePtr mynode = node; in sxe_prop_dim_read()
339 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_prop_dim_read()
346 node = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, &cnt); in sxe_prop_dim_read()
348 node = NULL; in sxe_prop_dim_read()
350 if (node) { in sxe_prop_dim_read()
351 …_node_as_zval(sxe, node, return_value, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->iter.isprefix… in sxe_prop_dim_read()
356 node = xmlNewTextChild(mynode->parent, mynode->ns, mynode->name, NULL); in sxe_prop_dim_read()
357 …_node_as_zval(sxe, node, return_value, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->iter.isprefix… in sxe_prop_dim_read()
363 GET_NODE(sxe, node); in sxe_prop_dim_read()
364 node = sxe_get_element_by_name(sxe, node, &name, &newtype TSRMLS_CC); in sxe_prop_dim_read()
365 if (node) { in sxe_prop_dim_read()
366 …_node_as_zval(sxe, node, return_value, newtype, name, sxe->iter.nsprefix, sxe->iter.isprefix TSRML… in sxe_prop_dim_read()
369 …_node_as_zval(sxe, node, return_value, SXE_ITER_ELEMENT, name, sxe->iter.nsprefix, sxe->iter.ispre… in sxe_prop_dim_read()
408 static void change_node_zval(xmlNodePtr node, zval *value TSRMLS_DC) in change_node_zval() argument
416 xmlNodeSetContentLen(node, (xmlChar *)"", 0); in change_node_zval()
432 buffer = xmlEncodeEntitiesReentrant(node->doc, (xmlChar *)Z_STRVAL_P(value)); in change_node_zval()
436 xmlNodeSetContentLen(node, buffer, buffer_len); in change_node_zval()
455 xmlNodePtr node; in sxe_prop_dim_write() local
502 GET_NODE(sxe, node); in sxe_prop_dim_write()
507 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_prop_dim_write()
508 attr = (xmlAttrPtr)node; in sxe_prop_dim_write()
511 mynode = node; in sxe_prop_dim_write()
512 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_prop_dim_write()
513 attr = node ? node->properties : NULL; in sxe_prop_dim_write()
515 if (!member && node && node->parent && in sxe_prop_dim_write()
516 node->parent->type == XML_DOCUMENT_NODE) { in sxe_prop_dim_write()
524 if (attribs && !node && sxe->iter.type == SXE_ITER_ELEMENT) { in sxe_prop_dim_write()
525 node = xmlNewChild(mynode, mynode->ns, sxe->iter.name, NULL); in sxe_prop_dim_write()
526 attr = node->properties; in sxe_prop_dim_write()
530 mynode = node; in sxe_prop_dim_write()
564 if (node) { in sxe_prop_dim_write()
593 if (node->type == XML_ATTRIBUTE_NODE) { in sxe_prop_dim_write()
599 newnode = node; in sxe_prop_dim_write()
606 newnode = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, &cnt); in sxe_prop_dim_write()
612 node = node->children; in sxe_prop_dim_write()
613 while (node) { in sxe_prop_dim_write()
614 SKIP_TEXT(node); in sxe_prop_dim_write()
616 if (!xmlStrcmp(node->name, (xmlChar *)Z_STRVAL_P(member))) { in sxe_prop_dim_write()
617 newnode = node; in sxe_prop_dim_write()
622 node = node->next; in sxe_prop_dim_write()
642 if (!node) { in sxe_prop_dim_write()
660 …newnode = (xmlNodePtr)xmlNewProp(node, (xmlChar *)Z_STRVAL_P(member), value ? (xmlChar *)Z_STRVAL_… in sxe_prop_dim_write()
700 xmlNodePtr node; in sxe_property_get_adr() local
707 GET_NODE(sxe, node); in sxe_property_get_adr()
710 node = sxe_get_element_by_name(sxe, node, &name, &type TSRMLS_CC); in sxe_property_get_adr()
711 if (node) { in sxe_property_get_adr()
714 if (sxe_prop_dim_write(object, member, NULL, 1, 0, &node TSRMLS_CC) != SUCCESS) { in sxe_property_get_adr()
721 …_node_as_zval(sxe, node, return_value, type, name, sxe->iter.nsprefix, sxe->iter.isprefix TSRMLS_C… in sxe_property_get_adr()
739 xmlNodePtr node; in sxe_prop_dim_exists() local
754 GET_NODE(sxe, node); in sxe_prop_dim_exists()
761 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_prop_dim_exists()
769 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_prop_dim_exists()
770 attr = (xmlAttrPtr)node; in sxe_prop_dim_exists()
773 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_prop_dim_exists()
774 attr = node ? node->properties : NULL; in sxe_prop_dim_exists()
778 if (node) { in sxe_prop_dim_exists()
813 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_prop_dim_exists()
815 node = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, NULL); in sxe_prop_dim_exists()
818 node = node->children; in sxe_prop_dim_exists()
819 while (node) { in sxe_prop_dim_exists()
821 nnext = node->next; in sxe_prop_dim_exists()
822 … if ((node->type == XML_ELEMENT_NODE) && !xmlStrcmp(node->name, (xmlChar *)Z_STRVAL_P(member))) { in sxe_prop_dim_exists()
825 node = nnext; in sxe_prop_dim_exists()
828 if (node) { in sxe_prop_dim_exists()
831 (!node->children || (node->children->type == XML_TEXT_NODE && !node->children->next && in sxe_prop_dim_exists()
832 …(!node->children->content || !node->children->content[0] || !xmlStrcmp(node->children->content, "0… in sxe_prop_dim_exists()
868 xmlNodePtr node; in sxe_prop_dim_delete() local
884 GET_NODE(sxe, node); in sxe_prop_dim_delete()
891 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_prop_dim_delete()
899 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_prop_dim_delete()
900 attr = (xmlAttrPtr)node; in sxe_prop_dim_delete()
903 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_prop_dim_delete()
904 attr = node ? node->properties : NULL; in sxe_prop_dim_delete()
908 if (node) { in sxe_prop_dim_delete()
940 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_prop_dim_delete()
942 node = sxe_get_element_by_offset(sxe, Z_LVAL_P(member), node, NULL); in sxe_prop_dim_delete()
943 if (node) { in sxe_prop_dim_delete()
944 xmlUnlinkNode(node); in sxe_prop_dim_delete()
945 php_libxml_node_free_resource(node TSRMLS_CC); in sxe_prop_dim_delete()
948 node = node->children; in sxe_prop_dim_delete()
949 while (node) { in sxe_prop_dim_delete()
950 nnext = node->next; in sxe_prop_dim_delete()
952 SKIP_TEXT(node); in sxe_prop_dim_delete()
954 if (!xmlStrcmp(node->name, (xmlChar *)Z_STRVAL_P(member))) { in sxe_prop_dim_delete()
955 xmlUnlinkNode(node); in sxe_prop_dim_delete()
956 php_libxml_node_free_resource(node TSRMLS_CC); in sxe_prop_dim_delete()
960 node = nnext; in sxe_prop_dim_delete()
1006 static void _get_base_node_value(php_sxe_object *sxe_ref, xmlNodePtr node, zval **value, xmlChar *n… in _get_base_node_value() argument
1013 if (node->children && node->children->type == XML_TEXT_NODE && !xmlIsBlankNode(node->children)) { in _get_base_node_value()
1014 contents = xmlNodeListGetString(node->doc, node->children, 1); in _get_base_node_value()
1027 php_libxml_increment_node_ptr((php_libxml_node_object *)subnode, node, NULL TSRMLS_CC); in _get_base_node_value()
1068 xmlNodePtr node; in sxe_get_prop_hash() local
1094 GET_NODE(sxe, node); in sxe_get_prop_hash()
1095 if (!node) { in sxe_get_prop_hash()
1100 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_get_prop_hash()
1102 if (!node || node->type != XML_ENTITY_DECL) { in sxe_get_prop_hash()
1103 attr = node ? (xmlAttrPtr)node->properties : NULL; in sxe_get_prop_hash()
1123 GET_NODE(sxe, node); in sxe_get_prop_hash()
1124 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_get_prop_hash()
1125 if (node && sxe->iter.type != SXE_ITER_ATTRLIST) { in sxe_get_prop_hash()
1126 if (node->type == XML_ATTRIBUTE_NODE) { in sxe_get_prop_hash()
1128 ZVAL_STRING(value, sxe_xmlNodeListGetString(node->doc, node->children, 1), 0); in sxe_get_prop_hash()
1130 node = NULL; in sxe_get_prop_hash()
1132 node = node->children; in sxe_get_prop_hash()
1135 while (node) { in sxe_get_prop_hash()
1136 if (node->children != NULL || node->prev != NULL || node->next != NULL) { in sxe_get_prop_hash()
1137 SKIP_TEXT(node); in sxe_get_prop_hash()
1139 if (node->type == XML_TEXT_NODE) { in sxe_get_prop_hash()
1140 const xmlChar *cur = node->content; in sxe_get_prop_hash()
1144 ZVAL_STRING(value, sxe_xmlNodeListGetString(node->doc, node, 1), 0); in sxe_get_prop_hash()
1151 …if (node->type == XML_ELEMENT_NODE && (! match_ns(sxe, node, sxe->iter.nsprefix, sxe->iter.isprefi… in sxe_get_prop_hash()
1155 name = (char *) node->name; in sxe_get_prop_hash()
1159 namelen = xmlStrlen(node->name) + 1; in sxe_get_prop_hash()
1162 _get_base_node_value(sxe, node, &value, sxe->iter.nsprefix, sxe->iter.isprefix TSRMLS_CC); in sxe_get_prop_hash()
1166 node = node->next; in sxe_get_prop_hash()
1195 if (sxe1->node == NULL) { in sxe_objects_compare()
1196 if (sxe2->node) { in sxe_objects_compare()
1202 return !(sxe1->node == sxe2->node); in sxe_objects_compare()
1236 if (!sxe->node) { in SXE_METHOD()
1240 nodeptr = php_sxe_get_first_node(sxe, sxe->node->node TSRMLS_CC); in SXE_METHOD()
1242 sxe->xpath->node = nodeptr; in SXE_METHOD()
1326 xmlNodePtr node; in SXE_METHOD() local
1343 GET_NODE(sxe, node); in SXE_METHOD()
1344 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1346 if (node) { in SXE_METHOD()
1347 if (node->parent && (XML_DOCUMENT_NODE == node->parent->type)) { in SXE_METHOD()
1362 xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, NULL); in SXE_METHOD()
1372 GET_NODE(sxe, node); in SXE_METHOD()
1373 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1375 if (node) { in SXE_METHOD()
1376 if (node->parent && (XML_DOCUMENT_NODE == node->parent->type)) { in SXE_METHOD()
1388 …xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, ((xmlDocPtr) sxe->document->… in SXE_METHOD()
1414 static void sxe_add_namespaces(php_sxe_object *sxe, xmlNodePtr node, zend_bool recursive, zval *ret… in sxe_add_namespaces() argument
1418 if (node->ns) { in sxe_add_namespaces()
1419 sxe_add_namespace_name(return_value, node->ns); in sxe_add_namespaces()
1422 attr = node->properties; in sxe_add_namespaces()
1431 node = node->children; in sxe_add_namespaces()
1432 while (node) { in sxe_add_namespaces()
1433 if (node->type == XML_ELEMENT_NODE) { in sxe_add_namespaces()
1434 sxe_add_namespaces(sxe, node, recursive, return_value TSRMLS_CC); in sxe_add_namespaces()
1436 node = node->next; in sxe_add_namespaces()
1447 xmlNodePtr node; in SXE_METHOD() local
1456 GET_NODE(sxe, node); in SXE_METHOD()
1457 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1459 if (node) { in SXE_METHOD()
1460 if (node->type == XML_ELEMENT_NODE) { in SXE_METHOD()
1461 sxe_add_namespaces(sxe, node, recursive, return_value TSRMLS_CC); in SXE_METHOD()
1462 } else if (node->type == XML_ATTRIBUTE_NODE && node->ns) { in SXE_METHOD()
1463 sxe_add_namespace_name(return_value, node->ns); in SXE_METHOD()
1469 static void sxe_add_registered_namespaces(php_sxe_object *sxe, xmlNodePtr node, zend_bool recursive… in sxe_add_registered_namespaces() argument
1473 if (node->type == XML_ELEMENT_NODE) { in sxe_add_registered_namespaces()
1474 ns = node->nsDef; in sxe_add_registered_namespaces()
1480 node = node->children; in sxe_add_registered_namespaces()
1481 while (node) { in sxe_add_registered_namespaces()
1482 sxe_add_registered_namespaces(sxe, node, recursive, return_value TSRMLS_CC); in sxe_add_registered_namespaces()
1483 node = node->next; in sxe_add_registered_namespaces()
1516 xmlNodePtr node; in SXE_METHOD() local
1529 GET_NODE(sxe, node); in SXE_METHOD()
1530 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1532 …_node_as_zval(sxe, node, return_value, SXE_ITER_CHILD, NULL, (xmlChar *)nsprefix, isprefix TSRMLS_… in SXE_METHOD()
1542 xmlNodePtr node; in SXE_METHOD() local
1547 GET_NODE(sxe, node); in SXE_METHOD()
1548 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1549 if (node) { in SXE_METHOD()
1550 namelen = xmlStrlen(node->name); in SXE_METHOD()
1551 RETURN_STRINGL((char*)node->name, namelen, 1); in SXE_METHOD()
1565 xmlNodePtr node; in SXE_METHOD() local
1573 GET_NODE(sxe, node); in SXE_METHOD()
1579 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1581 …_node_as_zval(sxe, node, return_value, SXE_ITER_ATTRLIST, NULL, (xmlChar *)nsprefix, isprefix TSRM… in SXE_METHOD()
1592 xmlNodePtr node, newnode; in SXE_METHOD() local
1607 GET_NODE(sxe, node); in SXE_METHOD()
1614 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1616 if (node == NULL) { in SXE_METHOD()
1626 newnode = xmlNewChild(node, NULL, localname, (xmlChar *)value); in SXE_METHOD()
1633 nsptr = xmlSearchNsByHref(node->doc, node, (xmlChar *)nsuri); in SXE_METHOD()
1657 xmlNodePtr node; in SXE_METHOD() local
1673 GET_NODE(sxe, node); in SXE_METHOD()
1675 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1677 if (node && node->type != XML_ELEMENT_NODE) { in SXE_METHOD()
1678 node = node->parent; in SXE_METHOD()
1681 if (node == NULL) { in SXE_METHOD()
1698 attrp = xmlHasNsProp(node, localname, (xmlChar *)nsuri); in SXE_METHOD()
1709 nsptr = xmlSearchNsByHref(node->doc, node, (xmlChar *)nsuri); in SXE_METHOD()
1711 nsptr = xmlNewNs(node, (xmlChar *)nsuri, prefix); in SXE_METHOD()
1715 attrp = xmlNewNsProp(node, nsptr, localname, (xmlChar *)value); in SXE_METHOD()
1762 xmlNodePtr node; in sxe_object_cast() local
1769 node = php_sxe_get_first_node(sxe, NULL TSRMLS_CC); in sxe_object_cast()
1772 ZVAL_BOOL(writeobj, node != NULL || zend_hash_num_elements(prop_hash) > 0); in sxe_object_cast()
1779 node = php_sxe_get_first_node(sxe, NULL TSRMLS_CC); in sxe_object_cast()
1780 if (node) { in sxe_object_cast()
1781 contents = xmlNodeListGetString((xmlDocPtr) sxe->document->ptr, node->children, 1); in sxe_object_cast()
1784 if (!sxe->node) { in sxe_object_cast()
1790 if (sxe->node && sxe->node->node) { in sxe_object_cast()
1791 if (sxe->node->node->children) { in sxe_object_cast()
1792 contents = xmlNodeListGetString((xmlDocPtr) sxe->document->ptr, sxe->node->node->children, 1); in sxe_object_cast()
1830 xmlNodePtr node; in php_sxe_count_elements_helper() local
1838 node = php_sxe_reset_iterator(sxe, 0 TSRMLS_CC); in php_sxe_count_elements_helper()
1840 while (node) in php_sxe_count_elements_helper()
1843 node = php_sxe_iterator_fetch(sxe, node->next, 0 TSRMLS_CC); in php_sxe_count_elements_helper()
1963 if (sxe->node) { in sxe_object_clone()
1964 nodep = xmlDocCopyNode(sxe->node->node, docp, 1); in sxe_object_clone()
2232 static xmlNodePtr php_sxe_iterator_fetch(php_sxe_object *sxe, xmlNodePtr node, int use_data TSRMLS_… in php_sxe_iterator_fetch() argument
2239 while (node) { in php_sxe_iterator_fetch()
2240 SKIP_TEXT(node); in php_sxe_iterator_fetch()
2241 if (sxe->iter.type != SXE_ITER_ATTRLIST && node->type == XML_ELEMENT_NODE) { in php_sxe_iterator_fetch()
2242 …if ((!test_elem || !xmlStrcmp(node->name, sxe->iter.name)) && match_ns(sxe, node, prefix, isprefix… in php_sxe_iterator_fetch()
2245 } else if (node->type == XML_ATTRIBUTE_NODE) { in php_sxe_iterator_fetch()
2246 …if ((!test_attr || !xmlStrcmp(node->name, sxe->iter.name)) && match_ns(sxe, node, prefix, isprefix… in php_sxe_iterator_fetch()
2251 node = node->next; in php_sxe_iterator_fetch()
2254 if (node && use_data) { in php_sxe_iterator_fetch()
2256 _node_as_zval(sxe, node, sxe->iter.data, SXE_ITER_NONE, NULL, prefix, isprefix TSRMLS_CC); in php_sxe_iterator_fetch()
2259 return node; in php_sxe_iterator_fetch()
2265 xmlNodePtr node; in php_sxe_reset_iterator() local
2272 GET_NODE(sxe, node) in php_sxe_reset_iterator()
2274 if (node) { in php_sxe_reset_iterator()
2279 node = node->children; in php_sxe_reset_iterator()
2282 node = (xmlNodePtr) node->properties; in php_sxe_reset_iterator()
2284 return php_sxe_iterator_fetch(sxe, node, use_data TSRMLS_CC); in php_sxe_reset_iterator()
2348 if (intern != NULL && intern->node != NULL) { in php_sxe_iterator_current_key()
2349 curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->node)->node; in php_sxe_iterator_current_key()
2365 xmlNodePtr node = NULL; in php_sxe_move_forward_iterator() local
2370 GET_NODE(intern, node) in php_sxe_move_forward_iterator()
2375 if (node) { in php_sxe_move_forward_iterator()
2376 php_sxe_iterator_fetch(sxe, node->next, 1 TSRMLS_CC); in php_sxe_move_forward_iterator()
2402 xmlNodePtr node; in simplexml_export_node() local
2405 GET_NODE(sxe, node); in simplexml_export_node()
2406 return php_sxe_get_first_node(sxe, node TSRMLS_CC); in simplexml_export_node()
2415 zval *node; in PHP_FUNCTION() local
2420 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "o|C!", &node, &ce) == FAILURE) { in PHP_FUNCTION()
2424 object = (php_libxml_node_object *)zend_object_store_get_object(node TSRMLS_CC); in PHP_FUNCTION()
2426 nodep = php_libxml_import_node(node TSRMLS_CC); in PHP_FUNCTION()
2474 ZEND_ARG_INFO(0, node)