SimpleXML Problems Example - Use Iterators
Output of simplexml_problems.php:
--- one entry ---
object(SimpleXMLElement)#2 (1) {
[0]=>
string(7) "Entry 1"
}
Entry 1
--- two entries ---
object(SimpleXMLElement)#1 (1) {
[0]=>
string(7) "Entry 1"
}
Entry 1
Entry 2