Subject: bug#9265: 24.0.50; libxml-parse-xml-region broken

From: David Engster <[email-masked]>
Date: Tue, 09 Aug 2011 13:19:52 +0200

Recipe:

* emacs -Q

* Enter the following:

(libxml-parse-xml-region (1- (search-forward "<" nil t))  (point-max))

<?xml version="1.0"?>
<whatever>hi there!</whatever>

* Evaluate the first line.

* Returns nil, but should return '(whatever nil "hi there!")'

* Note that `libxml-parse-html-region' still works fine, though.

I'm pretty sure I could pinpoint this issue to this commit:

revno: 105297
author: HAMANO Kiyoto <[email-masked]>
committer: Lars Magne Ingebrigtsen <[email-masked]>
branch nick: trunk
timestamp: Wed 2011-07-20 22:05:02 +0200
message:
  * xml.c (parse_region): If a document contains only comments, return that, too.

Cheers,
David