Move common xml parsing code to a BaseXMLImporter class