[XML-SIG] Change in reporting of CDATA sections

"Martin v. Löwis" martin at v.loewis.de
Tue May 18 17:54:35 EDT 2004


Bob Kline wrote:
> Did the earlier versions of the DOM spec allow
> this, or was that just a bug in the implementation?

DOM never had the notion of parsing, or of XML documents,
for that matter. The DOM spec simply did not care where
a DOM tree comes from; the only way to create one was
to construct it from scratch (and then, there was no
way to serialize a DOM tree into an XML document).

Any way of integrating a parser into DOM was completely
proprietary - both in the programming interface, and the
semantics of that interface.

Only with DOM level 3, load and store is considered. Given
the past praxis, the only way to approach this is to
make things highly customizable. So DOM LS has dozens of
parameters that specify how to construct a DOM tree from
an XML document.

I personally think that CDATA sections are a mistake. They
shouldn't have been in XML, and people should not use them.
If that principle is followed, their representation in
the DOM is irrelevant.

Regards,
Martin




More information about the XML-SIG mailing list