load("php_xml_note.xml"); $x = $xmlDoc->documentElement; foreach ($x->childNodes AS $item) { echo $item->nodeName , " = ", $item->nodeValue,"
"; }