With SS5, this document is not valid, but with .NET, Xerces, XSV this document is valid.
What's the truth? XML spec (http://www.w3.org/TR/REC-xml/#elementvalid) says only:
"1 The declaration matches EMPTY and the element has no content (not even entity references, comments, PIs or white space)."
Subject:SS5.3.179L: empty element with CDATA, references or other content Author:Tony Lavinio Date:22 Oct 2004 03:47 PM
I'm not sure what you are looking for here. Yes, it's true that only
the internal validator (which is the current Xerces C++ one) and the
MSXML 4.0 DOM parser handle this exactly the way the spec states. I
even added the latest Xerces Java 2.6.2 validator, and got the same
results; I suspect some are not registering content handlers, and so
they don't see comments, etc. in their input events.
You could try posting this message in the various forums assoicated
with those products; you may get an answer there. We provide multiple
engines specifically so that users like yourself can see how your
files are treated by different real-world implementations.
Subject:SS5.3.179L: empty element with CDATA, references or other content Author:Hans-Peter Küchler Date:23 Oct 2004 09:22 PM Originally Posted: 23 Oct 2004 09:21 PM
I wasn't sure about the truth! It could be possible (but improbable;-) that SS fails, because one program differs from three others.
Thanks for clarification, Hans-Peter