[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: CDATA sections in W3C XML Infoset
- From: Gavin Thomas Nicol <gtn@ebt.com>
- To: xml-dev@lists.xml.org
- Date: Thu, 29 Mar 2001 05:24:23 -0500
> It wouldn't, necessarily, but presumably an implementation of
> normalize() has a chance of being more efficient than doing the same
> thing by creating new nodes and replacing old ones using DOM calls.
Not necessarily. Also, normalize() really shouldn't be guaranteed to
merge Text nodes (though the DOM spec implies it always succeeds).
For example, if it runs out of memory, it mightn't be able to merge
the nodes.
Anyway, my main point is that I can't see why CDATA sections add
such a burden to your processing.