Fixed exception when parsing XML with comments.

Added newline at the end of file

Fixed exception when parsing XML with comments