[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
xml-parse-attlist should be more flexible in parsing attributes
From: |
mah |
Subject: |
xml-parse-attlist should be more flexible in parsing attributes |
Date: |
Wed, 04 Dec 2002 13:40:55 -0600 |
xml-parse-attlist fails to parse empty attributes.
Specifically, it will not parse
<element att="">stuff</element>
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")))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- xml-parse-attlist should be more flexible in parsing attributes,
mah <=