Subject: Re: bug#11286: 24.1.50; xml-parse-region returns "Invalid character" if last line is a comment

From: Chong Yidong <[email-masked]>
Date: Sat, 21 Apr 2012 17:55:00 +0800

Thamer Mahmoud <[email-masked]> writes:

> (with-temp-buffer
>   (insert "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
> 	  "<rss version=\"2.0\">\n"
> 	  "</rss>\n"
> 	  "<!-- this line causes an error -->\n")
>   (xml-parse-region (point-min) (point-max)))

Thanks for the bug report and the clear testcase.  This regression was
caused by the fix to Bug#10405.  I've committed a fix to the emacs-24
branch.