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

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

xml.el parse numeric char reference error


From: Jae-oh Kim
Subject: xml.el parse numeric char reference error
Date: Tue, 22 Jan 2013 13:17:04 -0800 (PST)
User-agent: G2/1.0

There seems to be a bug in `xml-parse-string' in xml.el

$ cat example.xml

<?xml version="1.0"?>
<api>
  <entries>
   <p>&#xA0; Numeric character reference .</p>
  </entries>
</api>

evaluating
(xml-parse-file "example.xml")
results in the error message "(error "XML: (Not Well-Formed) Invalid
entity reference")"

Replace &#xA0 with &#160, then parse it with no error.


reply via email to

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