if not os.path.splitext(file_name)[1] == '.xml':
print self.style.NOTICE("Skipping '%s': not an XML file." % file_path)
continue
if not os.path.splitext(file_name)[1] == '.xml':
print self.style.NOTICE("Skipping '%s': not an XML file." % file_path)
continue