3 ms·
The question title implies he's parsing XHTML text. > XHTML is an XML-based HTML. It serves the same function as HTML, but with the same rules as XML documents
by kortex 7y ago
The question title implies he's parsing XHTML text.
> XHTML is an XML-based HTML. It serves the same function as HTML, but with the same rules as XML documents.
https://stackoverflow.com/q/1429065 https://stackoverflow.com/q/1429065
- ChrisSD 7y agoThe question title is ambiguous but the question tags include both HTML and XHTML. Self-closing `<element />` is an XML-ism which in HTML is treated the same as `<element>` but it was still fashionable to use them in HTML when XHTML was at its height.