Iterators for PHP XMLReader for ease of parsing