Back to index

php5  5.3.10
Variables
dom1.php File Reference

Go to the source code of this file.

Variables

 $dom = new domDocument
 if (!$dom) = fopen("$extname/$extname.php", "rb")
 $rootnode = $dom->documentElement
 $children = $rootnode->childNodes
 $last = $rootnode->lastChild
 $parent = $last->parentNode
 $attr = $rootnode->setAttribute("src", "picture.gif")
print n
 $attrs = $rootnode->attributes
 $myelement = new domElement("Silly", "Symphony")
 $newchild = $rootnode->appendChild($myelement)

Variable Documentation

$attr = $rootnode->setAttribute("src", "picture.gif")

Definition at line 45 of file dom1.php.

$attrs = $rootnode->attributes

Definition at line 59 of file dom1.php.

$children = $rootnode->childNodes

Definition at line 21 of file dom1.php.

$dom = new domDocument

Definition at line 5 of file dom1.php.

$last = $rootnode->lastChild

Definition at line 26 of file dom1.php.

$myelement = new domElement("Silly", "Symphony")

Definition at line 67 of file dom1.php.

$newchild = $rootnode->appendChild($myelement)

Definition at line 68 of file dom1.php.

$parent = $last->parentNode

Definition at line 31 of file dom1.php.

$rootnode = $dom->documentElement

Definition at line 17 of file dom1.php.

if = fopen("$extname/$extname.php", "rb")

Definition at line 7 of file dom1.php.

print n

Definition at line 48 of file dom1.php.