Re: [xml-dev] [Summary] How can the content of a leaf element be multiple text nodes?

From
Roger L Costello <>
To
"" <>
Date
2022-02-13T13:10:29Z
ID
<>
Thread
Re: [xml-dev] [Summary] How can the content of a leaf element be multiple text nodes?
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