Extended XMLReader class which also have ability return parsed XML as array or object