W3C home > Mailing lists > Public > www-dom@w3.org > January to March 1999

Re: "Empty" Text Nodes

From: David Brownell <db@Eng.Sun.COM>
Date: Wed, 24 Feb 1999 15:32:44 -0800
Message-ID: <36D48C1C.86A77F00@Eng.Sun.COM>
To: Oliver Becker <obecker@informatik.hu-berlin.de>
CC: www-dom@w3.org
Oliver Becker wrote:
> 
> Am I right in assuming that the structure model of a XML document
> created by a non-validating DOM implementation should be isomorph
> to that created by a validating one?
> (With exceptions regarding DocumentType of course, default values
> of attributes, entities ...)

The "create a structure model from this XML" step is out of
scope of DOM, so I'd say the spec doesn't address this.  Just
like it can't address whether various artifacts of that process
must show up (like ignorable whitespace, CDATA boundaries,
EntityReference nodes, comments, and so forth).


> My first opinion was that those Text nodes "\n" are unnecessary.

The XML spec requires "ignorable" whitespace to be reported as
such by "validating XML Processors" in certain circumstances,
but they don't apply in that particular example (no DTD!) ... so
it's not possible to get rid of them.

- Dave
Received on Wednesday, 24 February 1999 18:33:06 GMT

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