Re: [xml-dev] How many text nodes in this element with a CDATA section?

From
Mukul Gandhi <>
To
Michael Kay <>
Date
2022-02-08T13:37:19Z
ID
<>
Thread
Re: [xml-dev] How many text nodes in this element with a CDATA section?
Hi Mike,

On Tue, Feb 8, 2022 at 6:03 AM Michael Kay <[email protected]> wrote:
In the XDM model the content of the Test element is a single text node. XDM does not allow two adjacent text nodes.

There are certainly XPath implementations, especially those running against a DOM, that get this wrong. You seem to be running against an implementation that has "cdata-section" nodes, which do not exist in XDM.

Thanks, for the clarification.

This was a bug with Apache Xerces's XPath 2.0 engine as well, that's based on DOM. We just applied the fix, as you've stated.
 

--
Regards,
Mukul Gandhi