load($documentURL); ?> Harry Potter Recensie selectNodes("/recensie") as $xmlRecensie ) { ?>

selectSingleNode("titel/text()")->nodeValue ; ?>

selectSingleNode("auteur/text()")->nodeValue ; ?>

selectSingleNode("inleiding/alinea/text()")->nodeValue ; ?>

selectNodes("inhoud/alinea/text()") as $pNode ) { print '

'.$pNode->nodeValue.'

' ; } // de methode selectNodes selecteert meerdere nodes ( als deze er zijn) , de gevonden nodes worden doorlopen foreach ( $xmlRecensie->selectNodes("achtergrondinformatie/alinea/text()") as $pNode ) { print ''.$pNode->nodeValue.'
' ; } ?>