3 ms·
I would imagine that valid HTML could be parsed as XML, e.g. with the Python ElementTree XML API
by philip1209 14y ago
I would imagine that valid HTML could be parsed as XML, e.g. with the Python ElementTree XML API
- aardvark179 14y agoThat would be true for XHTML but not for HTML as tags like paragraph do not always require a end tag, which would break XML parsing.
- philip1209 14y agoI was under the impression that HTML4 introduced XML requirements, thus requiring the </p> tag.