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

Re: "Empty" Text Nodes

From: Oliver Becker <obecker@informatik.hu-berlin.de>
Date: Fri, 26 Feb 1999 12:33:23 +0100 (MET)
Message-Id: <199902261133.MAA14477@mail.informatik.hu-berlin.de>
To: www-dom@w3.org
Ok, let's summarize:

The XML spec states that "An XML processor must always pass all
characters in a document that are not markup through to the

My question: on which level the DOM is aligned?
Is it attached to a XML parser, or is it more
attached to a XML application?

In the latter case (validating parser with known DTD) the object
structure should not contain text nodes with whitespaces if the
content model of the element doesn't contain #PCDATA and xml:space
is not "preserve".

On the other hand it's no big effort transforming a DOM tree with
whitespace text nodes into another one without them ...


|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
Received on Friday, 26 February 1999 06:33:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:05 UTC