XML; $xml = simplexml_load_string($note); foreach ($xml->children() as $child) { echo "Child node: " , $child , ""; }