'Returns an XML tree read from file.'

def _getTree(self):

    f = open(self.filepath)
    try:
        tree = ET.fromstring(f.read())
    except SyntaxError as err:
        print ('SyntaxError:    %s.    %s' % (err, self.filepath))
        return None
    return tree
