Fixed exception when parsing XML with comments.

Fixed exception when parsing XML with comments