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

From
Michael Kay <>
To
Roger L Costello <>
Date
2022-02-13T00:09:36Z
ID
<>
Thread
Re: [xml-dev] [Summary] How can the content of a leaf element be multiple text nodes?
> 
> David, would you please give an example of an XML leaf element that would result in the W3C DOM producing two adjacent text nodes? Would this leaf element:
> 
> <Test>abc def</Test>
> 
> result in the W3C DOM producing two adjacent text nodes?
> 
> What is the reasoning behind creating two adjacent text nodes?
> 

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.

Michael Kay
Saxonica