[oXygen-user] Bug in Oxygen XPath evaluator for leaf elements containing a comment or a CDATA section
Roger L Costello
costello at mitre.org
Wed Feb 9 16:53:27 CST 2022
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.
[cid:image003.png at 01D81DDD.EFD2D7E0]
The XPath evaluator erroneously returns 3 items when <Test> contains a CDATA section. Further, there is no such thing as cdata-section node.
[cid:image004.png at 01D81DDD.EFD2D7E0]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20220209/94263f1c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 106491 bytes
Desc: image003.png
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20220209/94263f1c/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 125776 bytes
Desc: image004.png
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20220209/94263f1c/attachment-0003.png>
More information about the oXygen-user
mailing list