Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 136) sorted by relevance

123456

/PHP-7.1/ext/soap/
H A Dphp_xml.c192 return xmlSearchNs(node->doc, node->parent, NULL); in attr_find_ns()
201 return xmlSearchNs(node->doc, node, NULL); in node_find_ns()
242 return node; in get_attribute_ex()
244 node = node->next; in get_attribute_ex()
253 return node; in get_node_ex()
255 node = node->next; in get_node_ex()
264 return node; in get_node_recurisve_ex()
271 node = node->next; in get_node_recurisve_ex()
282 node = get_node_ex(node, name, name_ns); in get_node_with_attribute_ex()
292 node = node->next; in get_node_with_attribute_ex()
[all …]
H A Dphp_xml.h25 #define get_attribute(node, name) get_attribute_ex(node, name, NULL) argument
26 #define get_node(node, name) get_node_ex(node, name, NULL) argument
27 #define get_node_recursive(node, name) get_node_recursive_ex(node, name, NULL) argument
28 #define get_node_with_attribute(node, name, attr, val) get_node_with_attribute_ex(node, name, NULL,… argument
29 #define get_node_with_attribute_recursive(node, name, attr, val) get_node_with_attribute_recursive_… argument
30 #define node_is_equal(node, name) node_is_equal_ex(node, name, NULL) argument
31 #define attr_is_equal(node, name) attr_is_equal_ex(node, name, NULL) argument
36 xmlNsPtr attr_find_ns(xmlAttrPtr node);
37 xmlNsPtr node_find_ns(xmlNodePtr node);
38 int attr_is_equal_ex(xmlAttrPtr node, char *name, char *ns);
[all …]
/PHP-7.1/ext/simplexml/
H A Dsimplexml.c90 if ((__s)->node && (__s)->node->node) { \
156 node = node->next; in sxe_get_element_by_offset()
177 node = node->next; in sxe_find_element_by_name()
219 node = node->next; in sxe_get_element_by_name()
622 node = node->next; in sxe_prop_dim_write()
1113 node = node->next; in sxe_prop_is_empty()
1245 node = node->next; in sxe_get_prop_hash()
1553 node = node->next; in sxe_add_namespaces()
1913 if (sxe->node && sxe->node->node) { in sxe_object_cast_ex()
2394 node = node->next; in php_sxe_iterator_fetch()
[all …]
H A Dsxe.c107 if (intern != NULL && intern->node != NULL) { in PHP_METHOD()
108 curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->node)->node; in PHP_METHOD()
137 xmlNodePtr node; in PHP_METHOD() local
148 GET_NODE(child, node); in PHP_METHOD()
149 if (node) { in PHP_METHOD()
150 node = node->children; in PHP_METHOD()
152 while (node && node->type != XML_ELEMENT_NODE) { in PHP_METHOD()
153 node = node->next; in PHP_METHOD()
155 RETURN_BOOL(node ? 1 : 0); in PHP_METHOD()
H A Dphp_simplexml_exports.h34 if ((__s)->node && (__s)->node->node) { \
35 __n = (__s)->node->node; \
/PHP-7.1/ext/simplexml/tests/
H A Dbug37386.phpt2 Bug #39760 (autocreating element doesn't assign value to first node)
10 $sx1->node[0] = 'node1';
11 $sx1->node[1] = 'node2';
14 $node = $sx1->node[0];
15 $node[0] = 'New Value';
22 <root><node>node1</node><node>node2</node></root>
25 <root><node>New Value</node><node>node2</node></root>
/PHP-7.1/ext/dom/
H A Dtext.c103 xmlNodePtr node; in dom_text_whole_text_read() local
108 if (node == NULL) { in dom_text_whole_text_read()
114 …while (node->prev && ((node->prev->type == XML_TEXT_NODE) || (node->prev->type == XML_CDATA_SECTIO… in dom_text_whole_text_read()
115 node = node->prev; in dom_text_whole_text_read()
119 while (node && ((node->type == XML_TEXT_NODE) || (node->type == XML_CDATA_SECTION_NODE))) { in dom_text_whole_text_read()
121 node = node->next; in dom_text_whole_text_read()
146 xmlNodePtr node; in PHP_FUNCTION() local
157 if (node->type != XML_TEXT_NODE && node->type != XML_CDATA_SECTION_NODE) { in PHP_FUNCTION()
187 if (node->parent != NULL) { in PHP_FUNCTION()
204 xmlNodePtr node; in PHP_FUNCTION() local
[all …]
H A Dxpath.c149 if (node->children) { in dom_xpath_ext_function_php()
153 node = xmlNewDocNode(node->doc, NULL, (xmlChar *) node->children, node->name); in dom_xpath_ext_function_php()
155 node = xmlNewDocNode(node->doc, NULL, (xmlChar *) "xmlns", node->name); in dom_xpath_ext_function_php()
159 node->ns = curns; in dom_xpath_ext_function_php()
392 ctxp->node = nodep; in php_xpath_eval()
409 ctxp->node = NULL; in php_xpath_eval()
448 if (node->children) { in php_xpath_eval()
451 if (node->children) { in php_xpath_eval()
452 node = xmlNewDocNode(docp, NULL, (xmlChar *) node->children, node->name); in php_xpath_eval()
454 node = xmlNewDocNode(docp, NULL, (xmlChar *) "xmlns", node->name); in php_xpath_eval()
[all …]
/PHP-7.1/ext/mbstring/oniguruma/
H A Dregparse.h69 #define NSTR(node) (&((node)->u.str)) argument
70 #define NCCLASS(node) (&((node)->u.cclass)) argument
71 #define NCTYPE(node) (&((node)->u.ctype)) argument
72 #define NBREF(node) (&((node)->u.bref)) argument
73 #define NQTFR(node) (&((node)->u.qtfr)) argument
75 #define NANCHOR(node) (&((node)->u.anchor)) argument
76 #define NCONS(node) (&((node)->u.cons)) argument
77 #define NCALL(node) (&((node)->u.call)) argument
79 #define NCAR(node) (NCONS(node)->car) argument
80 #define NCDR(node) (NCONS(node)->cdr) argument
[all …]
H A Dregtrav.c35 capture_tree_traverse(OnigCaptureTreeNode* node, int at, in capture_tree_traverse() argument
41 if (node == (OnigCaptureTreeNode* )0) in capture_tree_traverse()
45 r = (*callback_func)(node->group, node->beg, node->end, in capture_tree_traverse()
50 for (i = 0; i < node->num_childs; i++) { in capture_tree_traverse()
51 r = capture_tree_traverse(node->childs[i], at, in capture_tree_traverse()
57 r = (*callback_func)(node->group, node->beg, node->end, in capture_tree_traverse()
H A Dregcomp.c1501 } while (IS_NOT_NULL(node = NCDR(node))); in compile_length_tree()
1513 } while (IS_NOT_NULL(node = NCDR(node))); in compile_length_tree()
1591 } while (r == 0 && IS_NOT_NULL(node = NCDR(node))); in compile_tree()
1619 } while (IS_NOT_NULL(node = NCDR(node))); in compile_tree()
1761 } while (r == 0 && IS_NOT_NULL(node = NCDR(node))); in noname_disable_map()
2608 n = node; in get_head_value_node()
2749 } while (IS_NOT_NULL(node = NCDR(node))); in subexp_inf_recursive_check()
2862 } while (IS_NOT_NULL(node = NCDR(node))); in subexp_recursive_check()
2926 } while (IS_NOT_NULL(node = NCDR(node))); in subexp_recursive_check_trav()
6137 while (IS_NOT_NULL(node = NCDR(node))) { in print_indent_tree()
[all …]
/PHP-7.1/ext/dom/tests/
H A Ddomelement.phpt16 $node = $dom->documentElement;
17 echo "Tag Name: ".$node->tagName."\n";
20 $node->setAttribute('num', '1');
23 $node->removeAttribute('num');
30 $node->setAttributeNode($lang);
32 $node->removeAttributeNode($lang);
46 $node->setAttributeNodeNS($lang);
57 $node->appendChild($element_ns);
59 $node->appendChild($element_ns);
66 $node->setAttribute('idatt', 'n1');
[all …]
H A Ddom007.phpt49 foreach ($nots AS $key=>$node) {
50 echo "Key $key: ".$node->nodeName." (".$node->systemId.") (".$node->publicId.")\n";
58 $node = $nots->getNamedItem('xxx');
59 var_dump($node);
68 foreach ($ents AS $key=>$node) {
72 foreach ($xkeys as $key => $node) {
73 echo $node;
83 echo $node;
87 $node = $ents->item(3);
88 var_dump($node);
[all …]
H A Dbug46335.phpt13 $node = $dom->createTextNode($textascii);
14 $dom->appendChild($node);
16 print "Text: $node->textContent\n";
18 $matched = $node->splitText($start);
22 $node = $dom->createTextNode($text);
23 $dom->appendChild($node);
25 print "Text: $node->textContent\n";
27 $matched = $node->splitText($start);
H A Ddom_test.inc23 function print_node($node)
25 print "Node Name: " . $node->nodeName;
26 print "\nNode Type: " . $node->nodeType;
27 if ($node->nodeType != 3) {
28 $child_count = $node->childNodes->length;
34 print "\nNode Content: " . $node->nodeValue;
41 foreach($nodelist as $node)
43 print_node($node);
H A Dbug36756.phpt2 Bug #36756 (DOMDocument::removeChild corrupts node)
12 $node = $xpath->query('/root')->item(0);
13 echo $node->nodeName . "\n";
15 echo "nodeType: " . $node->nodeType . "\n";
20 $node = $xpath->query('//child')->item(0);
21 echo $node->nodeName . "\n";
24 echo "nodeType: " . $node->nodeType . "\n";
H A DDOMNode_removeChild_basic.phpt44 echo "node $index\n";
55 echo "node $index\n";
61 node 4
65 node 3
73 node 2
77 node 1
85 node 0
90 node 0
98 node 1
/PHP-7.1/ext/tidy/examples/
H A Ddumpit5.php54 function dump_tree(tidyNode $node, $indent = 0) { argument
57 $nodename = trim(strtoupper($node->name));
61 do_leaf(" + $nodename (".node_type($node->type).")\n", $indent);
67 if($node->type == TIDY_NODETYPE_TEXT) {
69 do_leaf(" +---- Value: '{$node->value}'\n", $indent);
72 if(count($node->attribute)) {
76 foreach($node->attribute as $name=>$value) {
83 if($node->hasChildren()) {
84 foreach($node->child as $child) {
H A Durlgrab5.php15 function dump_nodes(tidyNode $node, &$urls = NULL) { argument
19 if(isset($node->id)) {
20 if($node->id == TIDY_TAG_A) {
21 $urls[] = $node->attribute['href'];
25 if($node->hasChildren()) {
27 foreach($node->child as $c) {
/PHP-7.1/ext/libxml/
H A Dlibxml.c190 if(node) { in php_libxml_node_free()
192 ((php_libxml_node_ptr *) node->_private)->node = NULL; in php_libxml_node_free()
232 curnode = node; in php_libxml_node_free_list()
245 xmlRemoveID(node->doc, (xmlAttrPtr) node); in php_libxml_node_free_list()
1189 return node; in php_libxml_import_node()
1198 if (object->node->node == node) { in php_libxml_increment_node_ptr()
1205 object->node = node->_private; in php_libxml_increment_node_ptr()
1214 object->node->node = node; in php_libxml_increment_node_ptr()
1217 node->_private = object->node; in php_libxml_increment_node_ptr()
1289 if (!node) { in php_libxml_node_free_resource()
[all …]
/PHP-7.1/Zend/
H A Dzend_generators.c433 …zend_generator *root = (generator->node.children < 1 ? generator : generator->node.ptr.leaf)->node in zend_generator_check_placeholder_frame()
474 switch (node->children) { in zend_generator_get_child()
500 node = &node->child.array[0].child->node; in zend_generator_search_multi_children_node()
502 return node->children > 1 ? node : NULL; in zend_generator_search_multi_children_node()
507 if (node->children < 4) { in zend_generator_add_single_child()
508 node->child.array[node->children].leaf = leaf; in zend_generator_add_single_child()
509 node->child.array[node->children].child = child; in zend_generator_add_single_child()
527 node->children++; in zend_generator_add_single_child()
548 zend_generator *leaf = child->node.children ? child->node.ptr.leaf : child; in zend_generator_add_child()
554 leaf->node.ptr.root = generator->node.ptr.root; in zend_generator_add_child()
[all …]
/PHP-7.1/ext/libxml/tests/
H A Dbug42112.phpt2 Bug #42112 (deleting a node produces memory corruption)
12 $node = $doc->getElementById( 'id1' );
13 print 'Deleting Node: '.$node->nodeName."\n";
14 $node->parentNode->removeChild( $node );
22 $node = $doc->getElementById( 'id1' );
23 if ($node) {
24 print 'Found Node: '.$node->nodeName."\n";
/PHP-7.1/ext/xmlrpc/libxmlrpc/
H A Dxml_to_soap.c115 xIter = XMLRPC_VectorNext(node); in get_array_soap_type()
128 xIter = XMLRPC_VectorNext(node); in get_array_soap_type()
437 if (node) { in SOAP_to_xml_element_worker()
469 int fault_type = get_fault_type(node); in SOAP_to_xml_element_worker()
474 node = gen_fault_xmlrpc(node, elem_val); in SOAP_to_xml_element_worker()
489 xIter = XMLRPC_VectorNext(node); in SOAP_to_xml_element_worker()
501 simplestring_addn(&elem_val->text, XMLRPC_GetValueString(node), XMLRPC_GetValueStringLen(node)); in SOAP_to_xml_element_worker()
532 base64_encode_xmlrpc(&buf, XMLRPC_GetValueBase64(node), XMLRPC_GetValueStringLen(node)); in SOAP_to_xml_element_worker()
547 pName = (char*)XMLRPC_GetValueID(node); in SOAP_to_xml_element_worker()
560 pName = (char*)XMLRPC_GetValueID(node); in SOAP_to_xml_element_worker()
[all …]
/PHP-7.1/ext/dom/examples/
H A Ddom1.inc23 function print_node($node)
25 print "Node Name: " . $node->nodeName;
26 print "\nNode Type: " . $node->nodeType;
27 $child_count = $node->childNodes->length;
30 print "\nNode Content: " . $node->nodeValue;
37 foreach($nodelist as $node)
39 print_node($node);
/PHP-7.1/ext/spl/tests/
H A Dbug54971.phpt12 <node>val1</node>
13 <node>val2</node>
22 $items = $xpath->query('//node');

Completed in 82 milliseconds

123456