Accessing Nodes
Output of domaccessingnodes.php:
--- get all childnodes of the root nodes --- #text #comment #text book #text book #text php #text --- get firstChild of root Node --- #text --- get lastChild of rootNode --- #text --- get nextSibling of firstChild of rootNode --- #comment --- get parentNode of firstChild of rootNode --- books --- get all attribute of the first book node --- id => 1 isbn => 3-8266-0612-4 --- get value of attribute id --- 1--- get ownerDocument of rootNode --- object(DOMDocument)#1 (0) { }
 
Getting Information out of a node © copyright 2004  Bitflux GmbH