Lines Matching refs:node
16 $node = $dom->documentElement;
17 echo "Tag Name: ".$node->tagName."\n";
20 $node->setAttribute('num', '1');
21 echo "Chapter: ".$node->getAttribute('num')."\n";
22 echo 'Attribute num exists?: '.($node->hasAttribute('num')?'Yes':'No')."\n";
23 $node->removeAttribute('num');
24 echo "Chapter: ".$node->getAttribute('num')."\n";
25 echo 'Attribute num exists?: '.($node->hasAttribute('num')?'Yes':'No')."\n";
27 echo "Language: ".$node->getAttribute('language')."\n";
28 $lang = $node->getAttributeNode('language');
30 $node->setAttributeNode($lang);
31 echo "Language: ".$node->getAttribute('language')."\n";
32 $node->removeAttributeNode($lang);
33 echo "Language: ".$node->getAttribute('language')."\n";
36 $node->setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:lang', 'en');
37 echo "Language: ".$node->getAttributeNS('http://www.w3.org/XML/1998/namespace', 'lang')."\n";
38 echo 'Attribute xml:lang exists?: '.($node->hasAttributeNS('http://www.w3.org/XML/1998/namespace', …
40 $node->removeAttributeNS('http://www.w3.org/XML/1998/namespace', 'lang');
41 echo "Language: ".$node->getAttributeNS('http://www.w3.org/XML/1998/namespace', 'lang')."\n";
42 echo 'Attribute xml:lang exists?: '.($node->hasAttributeNS('http://www.w3.org/XML/1998/namespace', …
46 $node->setAttributeNodeNS($lang);
48 echo "Language: ".$node->getAttributeNS('http://www.w3.org/XML/1998/namespace', 'lang')."\n";
49 $lang = $node->getAttributeNodeNS('http://www.w3.org/XML/1998/namespace', 'lang');
53 $rows = $node->getElementsByTagName('row');
57 $node->appendChild($element_ns);
59 $node->appendChild($element_ns);
61 $myelements = $node->getElementsByTagNameNS('urn::dummyns', 'myelement');
66 $node->setAttribute('idatt', 'n1');
67 $node->setIdAttribute('idatt', TRUE);
76 $idatt = $node->getAttributeNode('idatt');
77 $node->setIdAttributeNode($idatt, FALSE);
82 $node = $myelements->item($x);
83 $node->setIdAttributeNS('urn::dummyns', 'idatt', FALSE);