simplified the XMLExtractor run() method