[Home] [By Thread] [By Date] [Recent Entries]

  • From: Roger L Costello <costello@m...>
  • To: "xml-dev@l..." <xml-dev@l...>
  • Date: Sun, 13 Feb 2022 13:10:29 +0000

In responding to my inquiry about the W3C DOM allowing two adjacent text nodes, Michael Kay wrote:

> You can construct a DOM programmatically, 
> by adding and removing nodes at will. This 
> means you can construct a DOM tree that 
> does not correspond to any lexical XML 
> document.

Ah! Okay, so no element in a lexical XML document will ever get parsed to two adjacent text nodes. It is only after manipulating the in-memory DOM tree that one might see an element containing two adjacent text nodes.

Thanks Michael!

/Roger



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member