Converted XMLReader to instance class instead of static main driver