W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2001

Re: Memory Overhead

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Mon, 10 Sep 2001 11:45:13 -0400
To: www-dom@w3.org
Message-ID: <OF32CD725B.579C49AE-ON85256AC3.00560425@pok.ibm.com>

I forgot to add...

Regarding the whitespace text nodes; That's something the DOM doesn't
really have any choice about, since the XML Recommendation explicitly
requires that all whitespace be passed through to the application. Many XML
parsers have a "filtering" mode which allows applications to request that
whitespace-in-element-content be discarded; check yours to see if it has
that option.  Note that the parser can only recognize this case if you are
validating against a DTD or schema; if you don't do so, it has no way of
determining which whitespace is and isn't meaningful and must deliver it
all to avoid damaging the document.

DOM Level 3's Load/Save chapter is considering permitting such a filter.  I
believe we discussed the possibility of also allowing user-written filters,
so you could plug in logic to discard other unwanted information with or
without a DTD's advice.

______________________________________
Joe Kesselman  / IBM Research
Received on Monday, 10 September 2001 11:45:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:49 GMT