Fixes #2105
The whole XML comment has to be parsed as one XML tag to support strange but valid combinations like <!----> <!--invisible-tag></invisible-tag--> Fixes #1424
Added function to print tokens. Added test for text mixed with nodes. Issue #1424
Issue #1424