You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the LayoutAwareDFXPParser uses the html.parser feature instead of xml or lxml or such, it prints the warning when it think the content is XML and not HTML.
The warning:
.venv\Lib\site-packages\bs4\builder\__init__.py:545:
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.
Since the LayoutAwareDFXPParser uses the
html.parser
feature instead ofxml
orlxml
or such, it prints the warning when it think the content is XML and not HTML.The warning:
A possible solution would be:
The text was updated successfully, but these errors were encountered: