exception documentation

class XMLParsedAsHTMLWarning(UserWarning): (source)

View In Hierarchy

The warning issued when an HTML parser is used to parse XML that is not XHTML.

Constant MESSAGE Undocumented

Undocumented

Value
'It looks like you\'re parsing an XML document using an HTML parser. If this rea
lly is an HTML document (maybe it\'s XHTML?), you can ignore or filter this warn
ing. If it\'s XML, you should know that using an XML parser will be more reliabl
e. To parse this document as XML, make sure you have the lxml package installed,
 and pass the keyword argument `features="xml"` into the BeautifulSoup construct
or.'