Home
last modified time | relevance | path

Searched refs:sxe (Results 1 – 25 of 67) sorted by relevance

123

/php-src/ext/simplexml/
H A Dsimplexml.c71 subnode = php_sxe_object_new(sxe->zo.ce, sxe->fptr_count); in node_as_zval()
102 if (sxe && sxe->iter.type != SXE_ITER_NONE) { in php_sxe_get_first_node_non_destructive()
320 node_as_zval(sxe, node, rv, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->iter.isprefix); in sxe_prop_dim_read()
326 node_as_zval(sxe, node, rv, SXE_ITER_NONE, NULL, sxe->iter.nsprefix, sxe->iter.isprefix); in sxe_prop_dim_read()
331 node_as_zval(sxe, node, rv, SXE_ITER_ELEMENT, name, sxe->iter.nsprefix, sxe->iter.isprefix); in sxe_prop_dim_read()
658 node_as_zval(sxe, node, &ret, type, NULL, sxe->iter.nsprefix, sxe->iter.isprefix); in sxe_property_get_adr()
1159 get_base_node_value(sxe, node, &value, sxe->iter.nsprefix, sxe->iter.isprefix); in sxe_get_prop_hash()
1862 if (sxe->node && sxe->node->node) { in sxe_object_cast_ex()
2089 bool is_root_element = sxe->node && sxe->node->node && sxe->node->node->parent in sxe_object_clone()
2092 clone = php_sxe_object_new(sxe->zo.ce, sxe->fptr_count); in sxe_object_clone()
[all …]
/php-src/ext/simplexml/tests/
H A D000.phpt12 global $sxe;
20 test('sxe');
21 test('sxe->elem1');
29 test('sxe->elem11');
39 ===sxe
74 ===sxe->elem1
109 ===sxe->elem1[0]
184 ===sxe->elem1[1]
197 ===sxe->elem1[2]
201 ===sxe->elem11
[all …]
H A D007.phpt11 <sxe id="elem1">
22 </sxe>
28 var_dump($sxe->elem1);
30 var_dump($sxe['id']);
33 $sxe['id'] = "Changed1";
34 var_dump($sxe['id']);
35 $sxe->elem1['attr1'] = 12;
38 unset($sxe['id']);
39 var_dump($sxe['id']);
40 unset($sxe->elem1['attr1']);
[all …]
H A Dbug76712.phpt7 $sxe = new SimpleXMLElement('<foo></foo>');
8 $sxe->addChild('bar', '');
9 echo $sxe->asXML();
11 $sxe = new SimpleXMLElement('<foo></foo>');
12 $sxe->addChild('bar');
13 $sxe->bar = '';
14 echo $sxe->asXML();
H A Dsxe_003.phpt11 <!DOCTYPE sxe SYSTEM "notfound.dtd">
12 <sxe id="elem1">
33 </sxe>
36 $sxe = simplexml_load_string($xml, 'SimpleXMLIterator');
38 foreach($sxe->getChildren() as $name => $data) {
46 for ($sxe->rewind(); $sxe->valid(); $sxe->next()) {
47 var_dump($sxe->hasChildren());
48 var_dump(trim($sxe->key()));
49 var_dump(trim($sxe->current()));
50 foreach($sxe->getChildren() as $name => $data) {
H A Dcurrent_error.phpt15 $sxe = simplexml_load_string($xml);
18 $sxe->current();
23 for ($sxe->rewind(); $sxe->valid(); $sxe->next()) {
24 var_dump($sxe->key(), $sxe->current());
28 $sxe->current();
H A Dkey_error.phpt15 $sxe = simplexml_load_string($xml);
18 $sxe->key();
23 for ($sxe->rewind(); $sxe->valid(); $sxe->next()) {
24 var_dump($sxe->key(), $sxe->current());
28 $sxe->key();
H A D008.phpt10 <!DOCTYPE sxe SYSTEM "notfound.dtd">
11 <sxe id="elem1">
22 </sxe>
25 $sxe = simplexml_load_string($xml);
27 var_dump($sxe->xpath("elem1/elem2/elem3/elem4"));
29 var_dump($sxe->xpath("***"));
31 var_dump($sxe->xpath("**"));
H A D012.phpt13 $sxe = simplexml_load_string($xml);
16 $sxe[""] = "value";
21 $sxe["attr"] = "value";
23 echo $sxe->asXML();
25 $sxe["attr"] = "new value";
27 echo $sxe->asXML();
30 $sxe[] = "error";
H A Dsxe_005.phpt11 <sxe>
15 </sxe>
27 $sxe = new SXETest($xml);
29 var_dump(count($sxe));
30 var_dump(count($sxe->elem1));
31 var_dump(count($sxe->elem2));
H A D005.phpt8 $sxe = simplexml_load_string(<<<EOF
10 <!DOCTYPE sxe SYSTEM "notfound.dtd">
11 <sxe id="elem1">
25 </sxe>
29 var_dump(trim($sxe->elem1->elem2));
30 var_dump(trim($sxe->elem1->elem2->elem3));
31 var_dump(trim($sxe->elem1->elem2->elem3->elem4));
H A D030.phpt16 $sxe = simplexml_load_string($xml);
18 echo $sxe->child1[0]."\n";
19 echo $sxe->child1[1]."\n\n";
21 var_dump(isset($sxe->child1[1]));
22 unset($sxe->child1[1]);
23 var_dump(isset($sxe->child1[1]));
26 $atts = $sxe->attributes("urn::test");
H A Dsimplexml_uninitialized.phpt14 $sxe = new MySXE;
16 var_dump($sxe->count());
21 var_dump($sxe->xpath(''));
26 var_dump($sxe->getDocNamespaces());
31 var_dump($sxe->children());
36 var_dump($sxe->attributes());
41 var_dump($sxe->registerXPathNamespace('', ''));
46 var_dump($sxe->foo);
H A D025.phpt19 $sxe = simplexml_load_string($xml);
21 var_dump($sxe->getNamespaces());
22 var_dump($sxe->getNamespaces(true));
23 var_dump($sxe->getDocNamespaces());
24 var_dump($sxe->getDocNamespaces(true));
33 $sxe = simplexml_load_string($xml);
35 var_dump($sxe->getNamespaces());
36 var_dump($sxe->getDocNamespaces());
43 $sxe = simplexml_load_string($xml);
45 var_dump($sxe->getNamespaces());
[all …]
H A D006.phpt8 $sxe = simplexml_load_string(<<<EOF
10 <!DOCTYPE sxe SYSTEM "notfound.dtd">
11 <sxe id="elem1">
32 </sxe>
36 foreach($sxe as $name => $data) {
43 foreach(clone $sxe as $name => $data) {
50 foreach($sxe->elem11 as $name => $data) {
57 foreach($sxe->elem1 as $name => $data) {
H A D004.phpt8 $sxe = simplexml_load_string(<<<EOF
10 <!DOCTYPE sxe SYSTEM "notfound.dtd">
11 <sxe id="elem1">
24 </sxe>
28 var_dump($sxe);
30 $elem1 = $sxe->elem1;
H A D019.phpt8 $sxe = simplexml_load_string(<<<EOF
10 <!DOCTYPE sxe SYSTEM "notfound.dtd">
11 <sxe id="elem1">
32 </sxe>
36 foreach($sxe->children() as $name => $data) {
43 foreach(clone $sxe->children() as $name => $data) {
50 foreach($sxe->elem11->children() as $name => $data) {
57 foreach($sxe->elem1->children() as $name => $data) {
H A D031.phpt16 $sxe = simplexml_load_string($xml);
19 $sxe->addAttribute('v:att11', 'xxx', 'urn::test-v');
22 $sxe->addAttribute('v:att11', 'xxx', 'urn::test-v');
25 $sxe->addAttribute('att2', 'no-ns');
27 $d = $sxe->attributes();
33 $sxe->addChild('m:test1', 'myval', 'urn::test');
36 $n = $sxe->addChild('m:test2', 'myval', 'urn::testnew');
38 $sxe->addChild('test3', 'myval', 'urn::testnew');
39 $sxe->addChild('test4', 'myval');
42 $sxe->addChild('s:test5', 'myval');
[all …]
H A D009b.phpt7 $sxe = simplexml_load_string(<<<EOF
9 <!DOCTYPE sxe SYSTEM "notfound.dtd">
10 <sxe id="elem1">
16 </sxe>
19 var_dump($sxe->children());
H A D011.phpt17 $sxe = simplexml_load_string($xml);
20 echo $sxe->bar;
24 echo $sxe->baz;
28 echo $sxe->baz[0];
32 print $sxe->baz[1];
H A DgetDocNamespaces_no_internal_declaration.phpt20 $sxe = simplexml_load_string($xml);
21 var_dump($sxe->getDocNamespaces(true));
25 $sxe = simplexml_import_dom($dom);
26 var_dump($sxe->getDocNamespaces(true));
29 $sxe = simplexml_import_dom($dom);
30 var_dump($sxe->getDocNamespaces(true));
H A Dsxe_002.phpt11 <!DOCTYPE sxe SYSTEM "notfound.dtd">
12 <sxe id="elem1">
33 </sxe>
36 $sxe = simplexml_load_string($xml, 'SimpleXMLIterator');
38 foreach(new RecursiveIteratorIterator($sxe, 1) as $name => $data) {
46 var_dump(get_class($sxe));
47 var_dump(trim($sxe->elem1));
H A D002.phpt10 <!DOCTYPE sxe SYSTEM "notfound.dtd">
11 <sxe id="elem1">
22 </sxe>
25 $sxe = simplexml_load_string($xml);
27 $copy = clone $sxe;
H A D009.phpt7 $sxe = simplexml_load_string(<<<EOF
9 <!DOCTYPE sxe SYSTEM "notfound.dtd">
10 <sxe id="elem1">
28 </sxe>
31 foreach($sxe->children() as $name=>$val) {
H A Dprofile13.phpt23 $sxe = simplexml_load_string($xml);
24 var_dump($sxe->children('soap', 1));
26 $sxe = simplexml_load_string($xml, NULL, 0, 'soap', 1);
27 var_dump($sxe->Body);
28 var_dump($sxe->Body->children(''));
29 var_dump($sxe->Body->children('')->businessList);

Completed in 42 milliseconds

123