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

  • From: Michael Kay <mike@s...>
  • To: Roger L Costello <costello@m...>
  • Date: Sun, 13 Feb 2022 00:09:36 +0000

> 
> 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



[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