recursive SimpleXML_Element iterator
- PHP 5.0
The SimpleXMLIterator implements the RecursiveIterator interface. This allows iteration over all elements using foreach or an appropriate while construct, just like SimpleXMLElement does. When using the foreach construct, you will also iterate over the subelements. For every element which has subelements, hasChildren() returns true. This will trigger a call to getChildren() which returns the iterator for that sub element.
Definition at line 1094 of file spl.php.