logoalt Hacker News

jdiff • yesterday at 10:39 PM • 2 replies • view on HN

XML can handle implicitly closed tags, they call them "empty" in the spec here:

https://www.w3.org/TR/xml/#sec-starttags


Replies

plorkyeran • yesterday at 11:54 PM

Empty tags in XML are not implicitly closed. They require the explicit /.

conartist6 • yesterday at 11:53 PM

XML can handle <img /> but not <img> followed by tagsoup (like HTML handles).