Hello Oxygen Team,

 

The XPath evaluator returns a series of text nodes for a leaf element containing a comment or a CDATA section. That is not correct. The content is a single text node.

 

Here is a <Test> element whose content is some text, a comment, and more text. The XPath evaluator for /Test/text() returns 2 items, which is not correct. The content of <Test> is a single text node containing all of the text concatenated.

 

 

The XPath evaluator erroneously returns 3 items when <Test> contains a CDATA section. Further, there is no such thing as cdata-section node.