def xml_read_from_file(file_name):
    xml_fn = os.path.expanduser(file_name)
    if (not os.path.isfile(xml_fn)):
        raise InvalidFile(("Specified file: '%s' not found" % xml_fn))
    with open(xml_fn, 'r') as fp:
        return fp.read()
def xml_read_from_file(file_name):
    xml_fn = os.path.expanduser(file_name)
    if (not os.path.isfile(xml_fn)):
        raise InvalidFile(("Specified file: '%s' not found" % xml_fn))
    with open(xml_fn, 'r') as fp:
        return fp.read()