-
Notifications
You must be signed in to change notification settings - Fork 786
Closed
Labels
Description
If you parse the following XML Node:
<node>
Lorem ipsum dolor sit amet,
consetetur sadipscing elitr, <!-- Some Comment -->
sed diam nonumy eirmod tempor invidunt <!-- ut labore et dolore magna aliquyam erat-->,
sed diam voluptua.
</node>you will receive a node with 3 children, that contain Lorem ipsum dolor sit amet,\nconsetetur sadipscing elitr,, sed diam nonumy eirmod tempor invidunt and ,\nsed diam voluptua., respectively.
If you enable parse_comments, the root will correctly contain 5 nodes, where the 2 comments are between the 3 text nodes.
But if you disable comments, however, the text will still be split into the 3 pieces, whereas one would probably expect them to be parsed into one single node.
I don't know if that is intended behavior, but IMHO it would be better to be parsed into a single node.
~Jonathan