bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XML parsing error


From: Edward O'Connor
Subject: XML parsing error
Date: Sat, 31 Aug 2002 05:01:27 -0500

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-03-17 on george
Important settings:
  value of $LC_ALL: POSIX
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

When using xml.el to parse some XML, I encountered a small bug in
its handling off tag attributes. Specifically, it doesn't allow
for the empty string as an attribute value, whereas the XML
standard pretty clearly allows for the empty string.

In a fresh emacs -q --no-site-file, the following steps should
reproduce the faulty behavior: Load the xml.el library. Insert
"<foo bar=''/>" into the buffer, and xml-parse-region it.

The reason for this misbehavior appears to be the regular
expressions appearing on lines 292 and 293 of xml.el. I think a
simple change of the +'s to *'s should fix them.

Recent messages:
Making completion list...done
Auto-saving...done
xml-read-from-string
xmpp-recv
Wrote /home/ted/elisp/smyrno/xmppbuff.el
Mark set
History item: 1
error in process filter: xml-parse-attlist: XML: Attribute values must be given 
between quotes
error in process filter: XML: Attribute values must be given between quotes
Loading emacsbug...done


-- 
Edward O'Connor
address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]