Fixed exception when parsing XML with comments.

Fixed exception when parsing XML with comments
@antoviaque it looks like it's possible to completely exclude comments from parsing, but I'm not sure how and if it would affect saving. Will check later today, I still got full-time job to do :)