def parse_opml_file(filename: str) -> OPML:
    """Parse an OPML document from a local XML file."""
    root = parse_xml(filename).getroot()
    return _parse_opml(root)
def parse_opml_file ( filename : str ) -> OPML : root = parse_xml ( filename ) . getroot ( ) return _parse_opml ( root )
Parse an OPML document from a local XML file.