SimpleXMLIterator::getChildren Returns the sub-elements of the current element &reftitle.description; public SimpleXMLIteratorSimpleXMLIterator::getChildren This method returns a SimpleXMLIterator object containing sub-elements of the current SimpleXMLIterator element. &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; Returns a SimpleXMLIterator object containing the sub-elements of the current element. &reftitle.examples; Return the sub-elements of the current element PHP Basics Jim Smith XML basics XML; $xmlIterator = new SimpleXMLIterator($xml); for( $xmlIterator->rewind(); $xmlIterator->valid(); $xmlIterator->next() ) { foreach($xmlIterator->getChildren() as $name => $data) { echo "The $name is '$data' from the class " . get_class($data) . "\n"; } } ?> ]]> &example.outputs;