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
1092 GET_NODE(sxe, node); in sxe_get_prop_hash()
1093 if (!node) { in sxe_get_prop_hash()
1098 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_get_prop_hash()
1100 if (!node || node->type != XML_ENTITY_DECL) { in sxe_get_prop_hash()
1101 attr = node ? (xmlAttrPtr)node->properties : NULL; in sxe_get_prop_hash()
1121 GET_NODE(sxe, node); in sxe_get_prop_hash()
1122 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in sxe_get_prop_hash()
1124 if (node && sxe->iter.type != SXE_ITER_ATTRLIST) { in sxe_get_prop_hash()
1125 if (node->type == XML_ATTRIBUTE_NODE) { in sxe_get_prop_hash()
1127 ZVAL_STRING(value, sxe_xmlNodeListGetString(node->doc, node->children, 1), 0); in sxe_get_prop_hash()
1129 node = NULL; in sxe_get_prop_hash()
1132 …SXE_ITER_NONE || !node->children || !node->parent || node->children->next || node->children->child… in sxe_get_prop_hash()
1133 node = node->children; in sxe_get_prop_hash()
1138 node = php_sxe_reset_iterator(sxe, 0 TSRMLS_CC); in sxe_get_prop_hash()
1144 while (node) { in sxe_get_prop_hash()
1145 if (node->children != NULL || node->prev != NULL || node->next != NULL) { in sxe_get_prop_hash()
1146 SKIP_TEXT(node); in sxe_get_prop_hash()
1148 if (node->type == XML_TEXT_NODE) { in sxe_get_prop_hash()
1149 const xmlChar *cur = node->content; in sxe_get_prop_hash()
1153 ZVAL_STRING(value, sxe_xmlNodeListGetString(node->doc, node, 1), 0); in sxe_get_prop_hash()
1160 …if (node->type == XML_ELEMENT_NODE && (! match_ns(sxe, node, sxe->iter.nsprefix, sxe->iter.isprefi… in sxe_get_prop_hash()
1164 name = (char *) node->name; in sxe_get_prop_hash()
1168 namelen = xmlStrlen(node->name) + 1; in sxe_get_prop_hash()
1171 _get_base_node_value(sxe, node, &value, sxe->iter.nsprefix, sxe->iter.isprefix TSRMLS_CC); in sxe_get_prop_hash()
1180 node = php_sxe_iterator_fetch(sxe, node->next, 0 TSRMLS_CC); in sxe_get_prop_hash()
1182 node = node->next; in sxe_get_prop_hash()
1229 if (sxe1->node == NULL) { in sxe_objects_compare()
1230 if (sxe2->node) { in sxe_objects_compare()
1236 return !(sxe1->node == sxe2->node); in sxe_objects_compare()
1270 if (!sxe->node) { in SXE_METHOD()
1272 if (!sxe->node) { in SXE_METHOD()
1277 nodeptr = php_sxe_get_first_node(sxe, sxe->node->node TSRMLS_CC); in SXE_METHOD()
1279 sxe->xpath->node = nodeptr; in SXE_METHOD()
1363 xmlNodePtr node; in SXE_METHOD() local
1380 GET_NODE(sxe, node); in SXE_METHOD()
1381 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1383 if (node) { in SXE_METHOD()
1384 if (node->parent && (XML_DOCUMENT_NODE == node->parent->type)) { in SXE_METHOD()
1399 xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, NULL); in SXE_METHOD()
1409 GET_NODE(sxe, node); in SXE_METHOD()
1410 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1412 if (node) { in SXE_METHOD()
1413 if (node->parent && (XML_DOCUMENT_NODE == node->parent->type)) { in SXE_METHOD()
1425 …xmlNodeDumpOutput(outbuf, (xmlDocPtr) sxe->document->ptr, node, 0, 0, ((xmlDocPtr) sxe->document->… in SXE_METHOD()
1451 static void sxe_add_namespaces(php_sxe_object *sxe, xmlNodePtr node, zend_bool recursive, zval *ret… in sxe_add_namespaces() argument
1455 if (node->ns) { in sxe_add_namespaces()
1456 sxe_add_namespace_name(return_value, node->ns); in sxe_add_namespaces()
1459 attr = node->properties; in sxe_add_namespaces()
1468 node = node->children; in sxe_add_namespaces()
1469 while (node) { in sxe_add_namespaces()
1470 if (node->type == XML_ELEMENT_NODE) { in sxe_add_namespaces()
1471 sxe_add_namespaces(sxe, node, recursive, return_value TSRMLS_CC); in sxe_add_namespaces()
1473 node = node->next; in sxe_add_namespaces()
1484 xmlNodePtr node; in SXE_METHOD() local
1493 GET_NODE(sxe, node); in SXE_METHOD()
1494 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1496 if (node) { in SXE_METHOD()
1497 if (node->type == XML_ELEMENT_NODE) { in SXE_METHOD()
1498 sxe_add_namespaces(sxe, node, recursive, return_value TSRMLS_CC); in SXE_METHOD()
1499 } else if (node->type == XML_ATTRIBUTE_NODE && node->ns) { in SXE_METHOD()
1500 sxe_add_namespace_name(return_value, node->ns); in SXE_METHOD()
1506 static void sxe_add_registered_namespaces(php_sxe_object *sxe, xmlNodePtr node, zend_bool recursive… in sxe_add_registered_namespaces() argument
1510 if (node->type == XML_ELEMENT_NODE) { in sxe_add_registered_namespaces()
1511 ns = node->nsDef; in sxe_add_registered_namespaces()
1517 node = node->children; in sxe_add_registered_namespaces()
1518 while (node) { in sxe_add_registered_namespaces()
1519 sxe_add_registered_namespaces(sxe, node, recursive, return_value TSRMLS_CC); in sxe_add_registered_namespaces()
1520 node = node->next; in sxe_add_registered_namespaces()
1533 xmlNodePtr node; in SXE_METHOD() local
1541 node = xmlDocGetRootElement((xmlDocPtr)sxe->document->ptr); in SXE_METHOD()
1543 GET_NODE(sxe, node); in SXE_METHOD()
1546 if (node == NULL) { in SXE_METHOD()
1551 sxe_add_registered_namespaces(sxe, node, recursive, return_value TSRMLS_CC); in SXE_METHOD()
1562 xmlNodePtr node; in SXE_METHOD() local
1575 GET_NODE(sxe, node); in SXE_METHOD()
1576 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1578 …_node_as_zval(sxe, node, return_value, SXE_ITER_CHILD, NULL, (xmlChar *)nsprefix, isprefix TSRMLS_… in SXE_METHOD()
1588 xmlNodePtr node; in SXE_METHOD() local
1593 GET_NODE(sxe, node); in SXE_METHOD()
1594 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1595 if (node) { in SXE_METHOD()
1596 namelen = xmlStrlen(node->name); in SXE_METHOD()
1597 RETURN_STRINGL((char*)node->name, namelen, 1); in SXE_METHOD()
1611 xmlNodePtr node; in SXE_METHOD() local
1619 GET_NODE(sxe, node); in SXE_METHOD()
1625 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1627 …_node_as_zval(sxe, node, return_value, SXE_ITER_ATTRLIST, NULL, (xmlChar *)nsprefix, isprefix TSRM… in SXE_METHOD()
1638 xmlNodePtr node, newnode; in SXE_METHOD() local
1653 GET_NODE(sxe, node); in SXE_METHOD()
1660 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1662 if (node == NULL) { in SXE_METHOD()
1672 newnode = xmlNewChild(node, NULL, localname, (xmlChar *)value); in SXE_METHOD()
1679 nsptr = xmlSearchNsByHref(node->doc, node, (xmlChar *)nsuri); in SXE_METHOD()
1703 xmlNodePtr node; in SXE_METHOD() local
1719 GET_NODE(sxe, node); in SXE_METHOD()
1721 node = php_sxe_get_first_node(sxe, node TSRMLS_CC); in SXE_METHOD()
1723 if (node && node->type != XML_ELEMENT_NODE) { in SXE_METHOD()
1724 node = node->parent; in SXE_METHOD()
1727 if (node == NULL) { in SXE_METHOD()
1744 attrp = xmlHasNsProp(node, localname, (xmlChar *)nsuri); in SXE_METHOD()
1755 nsptr = xmlSearchNsByHref(node->doc, node, (xmlChar *)nsuri); in SXE_METHOD()
1757 nsptr = xmlNewNs(node, (xmlChar *)nsuri, prefix); in SXE_METHOD()
1761 attrp = xmlNewNsProp(node, nsptr, localname, (xmlChar *)value); in SXE_METHOD()
1808 xmlNodePtr node; in sxe_object_cast() local
1815 node = php_sxe_get_first_node(sxe, NULL TSRMLS_CC); in sxe_object_cast()
1818 ZVAL_BOOL(writeobj, node != NULL || zend_hash_num_elements(prop_hash) > 0); in sxe_object_cast()
1825 node = php_sxe_get_first_node(sxe, NULL TSRMLS_CC); in sxe_object_cast()
1826 if (node) { in sxe_object_cast()
1827 contents = xmlNodeListGetString((xmlDocPtr) sxe->document->ptr, node->children, 1); in sxe_object_cast()
1830 if (!sxe->node) { in sxe_object_cast()
1836 if (sxe->node && sxe->node->node) { in sxe_object_cast()
1837 if (sxe->node->node->children) { in sxe_object_cast()
1838 contents = xmlNodeListGetString((xmlDocPtr) sxe->document->ptr, sxe->node->node->children, 1); in sxe_object_cast()
1876 xmlNodePtr node; in php_sxe_count_elements_helper() local
1884 node = php_sxe_reset_iterator(sxe, 0 TSRMLS_CC); in php_sxe_count_elements_helper()
1886 while (node) in php_sxe_count_elements_helper()
1889 node = php_sxe_iterator_fetch(sxe, node->next, 0 TSRMLS_CC); in php_sxe_count_elements_helper()
2011 if (sxe->node) { in sxe_object_clone()
2012 nodep = xmlDocCopyNode(sxe->node->node, docp, 1); in sxe_object_clone()
2280 static xmlNodePtr php_sxe_iterator_fetch(php_sxe_object *sxe, xmlNodePtr node, int use_data TSRMLS_… in php_sxe_iterator_fetch() argument
2287 while (node) { in php_sxe_iterator_fetch()
2288 SKIP_TEXT(node); in php_sxe_iterator_fetch()
2289 if (sxe->iter.type != SXE_ITER_ATTRLIST && node->type == XML_ELEMENT_NODE) { in php_sxe_iterator_fetch()
2290 …if ((!test_elem || !xmlStrcmp(node->name, sxe->iter.name)) && match_ns(sxe, node, prefix, isprefix… in php_sxe_iterator_fetch()
2293 } else if (node->type == XML_ATTRIBUTE_NODE) { in php_sxe_iterator_fetch()
2294 …if ((!test_attr || !xmlStrcmp(node->name, sxe->iter.name)) && match_ns(sxe, node, prefix, isprefix… in php_sxe_iterator_fetch()
2299 node = node->next; in php_sxe_iterator_fetch()
2302 if (node && use_data) { in php_sxe_iterator_fetch()
2304 _node_as_zval(sxe, node, sxe->iter.data, SXE_ITER_NONE, NULL, prefix, isprefix TSRMLS_CC); in php_sxe_iterator_fetch()
2307 return node; in php_sxe_iterator_fetch()
2313 xmlNodePtr node; in php_sxe_reset_iterator() local
2320 GET_NODE(sxe, node) in php_sxe_reset_iterator()
2322 if (node) { in php_sxe_reset_iterator()
2327 node = node->children; in php_sxe_reset_iterator()
2330 node = (xmlNodePtr) node->properties; in php_sxe_reset_iterator()
2332 return php_sxe_iterator_fetch(sxe, node, use_data TSRMLS_CC); in php_sxe_reset_iterator()
2392 if (intern != NULL && intern->node != NULL) { in php_sxe_iterator_current_key()
2393 curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->node)->node; in php_sxe_iterator_current_key()
2406 xmlNodePtr node = NULL; in php_sxe_move_forward_iterator() local
2411 GET_NODE(intern, node) in php_sxe_move_forward_iterator()
2416 if (node) { in php_sxe_move_forward_iterator()
2417 php_sxe_iterator_fetch(sxe, node->next, 1 TSRMLS_CC); in php_sxe_move_forward_iterator()
2443 xmlNodePtr node; in simplexml_export_node() local
2446 GET_NODE(sxe, node); in simplexml_export_node()
2447 return php_sxe_get_first_node(sxe, node TSRMLS_CC); in simplexml_export_node()
2456 zval *node; in PHP_FUNCTION() local
2461 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "o|C!", &node, &ce) == FAILURE) { in PHP_FUNCTION()
2465 object = (php_libxml_node_object *)zend_object_store_get_object(node TSRMLS_CC); in PHP_FUNCTION()
2467 nodep = php_libxml_import_node(node TSRMLS_CC); in PHP_FUNCTION()
2515 ZEND_ARG_INFO(0, node)