Home
last modified time | relevance | path

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

12345

/PHP-5.5/ext/soap/
H A Dphp_xml.c193 return xmlSearchNs(node->doc, node->parent, NULL); in attr_find_ns()
202 return xmlSearchNs(node->doc, node, NULL); in node_find_ns()
243 return node; in get_attribute_ex()
245 node = node->next; in get_attribute_ex()
254 return node; in get_node_ex()
256 node = node->next; in get_node_ex()
265 return node; in get_node_recurisve_ex()
272 node = node->next; in get_node_recurisve_ex()
283 node = get_node_ex(node, name, name_ns); in get_node_with_attribute_ex()
293 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-5.5/ext/simplexml/
H A Dsimplexml.c103 if ((__s)->node && (__s)->node->node) { \
104 __n = (__s)->node->node; \
169 node = node->next; in sxe_get_element_by_offset()
190 node = node->next; in sxe_find_element_by_name()
232 node = node->next; in sxe_get_element_by_name()
622 node = node->next; in sxe_prop_dim_write()
1182 node = node->next; in sxe_get_prop_hash()
1473 node = node->next; in sxe_add_namespaces()
1520 node = node->next; in sxe_add_registered_namespaces()
1836 if (sxe->node && sxe->node->node) { in sxe_object_cast()
[all …]
H A Dsxe.c103 if (intern != NULL && intern->node != NULL) { in PHP_METHOD()
104 curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->node)->node; in PHP_METHOD()
133 xmlNodePtr node; in PHP_METHOD() local
144 GET_NODE(child, node); in PHP_METHOD()
145 if (node) { in PHP_METHOD()
146 node = node->children; in PHP_METHOD()
148 while (node && node->type != XML_ELEMENT_NODE) { in PHP_METHOD()
149 node = node->next; in PHP_METHOD()
151 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-5.5/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-5.5/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()
6105 while (IS_NOT_NULL(node = NCDR(node))) { in print_indent_tree()
[all …]
/PHP-5.5/ext/dom/
H A Dtext.c107 xmlNodePtr node; in dom_text_whole_text_read() local
112 if (node == NULL) { in dom_text_whole_text_read()
118 …while (node->prev && ((node->prev->type == XML_TEXT_NODE) || (node->prev->type == XML_CDATA_SECTIO… in dom_text_whole_text_read()
119 node = node->prev; in dom_text_whole_text_read()
123 while (node && ((node->type == XML_TEXT_NODE) || (node->type == XML_CDATA_SECTION_NODE))) { in dom_text_whole_text_read()
125 node = node->next; in dom_text_whole_text_read()
151 xmlNodePtr node; in PHP_FUNCTION() local
163 if (node->type != XML_TEXT_NODE && node->type != XML_CDATA_SECTION_NODE) { in PHP_FUNCTION()
193 if (node->parent != NULL) { in PHP_FUNCTION()
210 xmlNodePtr node; in PHP_FUNCTION() local
[all …]
H A Dxpath.c155 if (node->children) { in dom_xpath_ext_function_php()
159 node = xmlNewDocNode(node->doc, NULL, (xmlChar *) node->children, node->name); in dom_xpath_ext_function_php()
161 node = xmlNewDocNode(node->doc, NULL, (xmlChar *) "xmlns", node->name); in dom_xpath_ext_function_php()
165 node->ns = curns; in dom_xpath_ext_function_php()
431 ctxp->node = nodep; in php_xpath_eval()
448 ctxp->node = NULL; in php_xpath_eval()
490 if (node->children) { in php_xpath_eval()
493 if (node->children) { in php_xpath_eval()
494 node = xmlNewDocNode(docp, NULL, (char *) node->children, node->name); in php_xpath_eval()
496 node = xmlNewDocNode(docp, NULL, "xmlns", node->name); in php_xpath_eval()
[all …]
/PHP-5.5/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";
62 node 4
66 node 3
74 node 2
78 node 1
86 node 0
91 node 0
99 node 1
/PHP-5.5/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-5.5/ext/libxml/
H A Dlibxml.c186 if(node) { in php_libxml_node_free()
188 ((php_libxml_node_ptr *) node->_private)->node = NULL; in php_libxml_node_free()
228 curnode = node; in php_libxml_node_free_list()
241 xmlRemoveID(node->doc, (xmlAttrPtr) node); in php_libxml_node_free_list()
1183 return node; in php_libxml_import_node()
1192 if (object->node->node == node) { in php_libxml_increment_node_ptr()
1199 object->node = node->_private; in php_libxml_increment_node_ptr()
1208 object->node->node = node; in php_libxml_increment_node_ptr()
1211 node->_private = object->node; in php_libxml_increment_node_ptr()
1283 if (!node) { in php_libxml_node_free_resource()
[all …]
/PHP-5.5/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-5.5/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 …]
H A Dxml_to_xmlrpc.c193 if (node) { in XMLRPC_to_xml_element_worker()
195 XMLRPC_VALUE_TYPE type = XMLRPC_GetValueType(node); in XMLRPC_to_xml_element_worker()
196 XMLRPC_VECTOR_TYPE vtype = XMLRPC_GetVectorType(node); in XMLRPC_to_xml_element_worker()
217 … simplestring_addn(&elem_val->text, XMLRPC_GetValueString(node), XMLRPC_GetValueStringLen(node)); in XMLRPC_to_xml_element_worker()
221 snprintf(buf, BUF_SIZE, "%i", XMLRPC_GetValueInt(node)); in XMLRPC_to_xml_element_worker()
245 … base64_encode_xmlrpc(&buf, XMLRPC_GetValueBase64(node), XMLRPC_GetValueStringLen(node)); in XMLRPC_to_xml_element_worker()
253 XMLRPC_VALUE xIter = XMLRPC_VectorRewind(node); in XMLRPC_to_xml_element_worker()
294 xIter = XMLRPC_VectorNext(node); in XMLRPC_to_xml_element_worker()
311 if (XMLRPC_VectorGetValueWithID(node, ELEM_FAULTCODE)) { in XMLRPC_to_xml_element_worker()
333 simplestring_add(&name->text, XMLRPC_GetValueID(node)); in XMLRPC_to_xml_element_worker()
[all …]
/PHP-5.5/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-5.5/ext/spl/tests/
H A Dbug54971.phpt12 <node>val1</node>
13 <node>val2</node>
22 $items = $xpath->query('//node');

Completed in 55 milliseconds

12345