php Programming Glossary: simplexmlelementiterator
XML parsing using but Element Names are Dynamic http://stackoverflow.com/questions/13221155/xml-parsing-using-but-element-names-are-dynamic a recursive iterator for SimpleXMLElement as well class SimpleXMLElementIterator extends IteratorIterator implements RecursiveIterator private.. would be similar Demo it new RecursiveIteratorIterator new SimpleXMLElementIterator xml RecursiveIteratorIterator SELF_FIRST tagnames array_keys.. or even the namespace URIs with the tagnames. The given SimpleXMLElementIterator could be changed to support the iteration over elements across..
|