From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: mah@everybody.org Newsgroups: gmane.emacs.bugs Subject: xml-parse-attlist should be more flexible in parsing attributes Date: Wed, 04 Dec 2002 13:40:55 -0600 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <87u1hta7y0.fsf@mah.mcdermott.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039030741 11749 80.91.224.249 (4 Dec 2002 19:39:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Dec 2002 19:39:01 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18JfMJ-00032y-00 for ; Wed, 04 Dec 2002 20:38:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18JfON-0000L7-00; Wed, 04 Dec 2002 14:41:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18JfOF-00005x-00 for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2002 14:40:59 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18JfOD-0008V8-00 for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2002 14:40:58 -0500 Original-Received: from gate.mcdermott.com ([131.184.96.33]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18JfOC-0008Us-00 for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2002 14:40:57 -0500 Original-Received: from mah.mcdermott.com (mah.mcdermott.com [131.184.104.67]) by gate.mcdermott.com (8.11.2/8.11.2) with ESMTP id gB4JeuJ29707 for ; Wed, 4 Dec 2002 13:40:56 -0600 (CST) Original-Received: from mah by mah.mcdermott.com with local (Exim 3.36 #1 (Debian)) id 18JfOB-0003U7-00 for ; Wed, 04 Dec 2002 13:40:55 -0600 Original-To: bug-gnu-emacs@gnu.org Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:4008 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4008 xml-parse-attlist fails to parse empty attributes. Specifically, it will not parse stuff To fix, replace (unless (looking-at "\"\\([^\"]+\\)\"") (unless (looking-at "'\\([^']+\\)'") (error "XML: Attribute values must be given between quotes"))) with (unless (looking-at "\"\\([^\"]*\\)\"") (unless (looking-at "'\\([^']*\\)'") (error "XML: Attribute values must be given between quotes")))