from bs4 import BeautifulSoup


def read_xml_conf(filename):
    """
    Read configuration file from local filesystem. The configuration file should be
    in valid XML format.

    :param filename: The XML file which has the configuration options.
    :returns: Configuration loaded from XML configuration file.
    :raises: None
    """
    with open(filename) as f:
        content = f.read()
    conf = BeautifulSoup(content, features='lxml')
    return conf