Closed jpark3000 closed 7 years ago
beautifulsoup does not support xhtml, only html5. If you want to work with xhtml use the lxml tree builder. In HTML 5 XML namespaces are ignored. (maybe_xhtml does not have any affect with the soup builder, as is noted int eh documentation).
I am parsing some xhtml like so:
But when I examine the returned soup, the
xmlns="http://www.w3.org/2000/svg"
attribute on the inline<svg>
element has becomexmlns:xmlns="http://www.w3.org/2000/svg"
.i.e.