Skip to content

Please, suppress the XMLParsedAsHTMLWarning #268

Open
@Lukas-Vasionis

Description

@Lukas-Vasionis

When executing bioservises.KEGG().parse_kgml_pathway() a bs4 warning comes out. Could you please suppress it or resolve it?

[miniconda3/lib/python3.12/site-packages/bioservices/xmltools.py:95](http://localhost:8888/lab/tree/jp/miniconda3/lib/python3.12/site-packages/bioservices/xmltools.py#line=94): XMLParsedAsHTMLWarning: It looks like you're parsing an XML document using an HTML parser. If this really is an HTML document (maybe it's XHTML?), you can ignore or filter this warning. If it's XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument `features="xml"` into the BeautifulSoup constructor. self._soup = bs4.BeautifulSoup(self.data, "lxml")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions