You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Input document can have one element divided into multiple text nodes (text() method than returns multiple nodes). XPath matching than doesn't work - it matches text only with first text node. Text nodes should be normalized before matching XPath.
Input text is divided into multiple text nodes for example when it contains entities - for example < or >.
The text was updated successfully, but these errors were encountered:
The above XML fragment is present many times in the xml document which I was trying to process. Interestingly the last occurrence of the XML could not get parsed correctly the text() has returned to nodes: "TOOXYZ:sometext /TOO" and XYZ:otherText
@reluxa This is correct, there can be multiple adjacent text nodes. You can call document.normalize() to settle text nodes.
This issue is about XPath matching - normalization should probably be done automatically before XPath matching because XPath expects normalized documents.
Input document can have one element divided into multiple text nodes (
text()
method than returns multiple nodes). XPath matching than doesn't work - it matches text only with first text node. Text nodes should be normalized before matching XPath.Input text is divided into multiple text nodes for example when it contains entities - for example
<
or>
.The text was updated successfully, but these errors were encountered: