Browsed by
Schlagwort: xml

XNX? (that's short for "XHTML's not XML?")

XNX? (that's short for "XHTML's not XML?")

XHTML documents are (at least I always believed so) XML documents, and as such, should be parsed with an XML parser. I don’t know of any parsers or data models which would even be able to distinguish <div></div> from <div/> So I would assume that both are valid markup. Or maybe, both would be invalid. But as far as  I know, neither DTD nor XSD can allow mixed content on an element, but forbid it to be empty, so they…

Weiterlesen Weiterlesen