* xml.el bug
@ 2004-10-07 1:06 Katsumi Yamaoka
2004-10-07 17:58 ` Mark A. Hershberger
0 siblings, 1 reply; 2+ messages in thread
From: Katsumi Yamaoka @ 2004-10-07 1:06 UTC (permalink / raw)
Hi,
I got an error while parsing BBC news using shimbun[1] and xml.el.
Here's a Lisp form which reproduces the same error as the case of
parsing the contents of:
http://www.bbc.co.uk/syndication/feeds/news/ukfs_news/world/rss091.xml
(xml-substitute-special
"The chief of Guinea-Bissau's army is killed by rebel soldiers in what is described as a "revolt" over unpaid wages.")
[1] Shimbun is a library, a part of emacs-w3m.
The backtrace is:
Debugger entered--Lisp error: (wrong-type-argument listp "\"")
cadr("\"")
(stringp (cadr expansion))
(and (eq (length expansion) 1) (stringp (cadr expansion)))
(if (and (eq ... 1) (stringp ...)) (setq children (concat prev-part expansion)) (if (stringp ...) (setq children ...) (setq children ...)))
(cond ((null children) (if ... ... ...)) ((stringp children) (if ... ... ...)) ((and ... ...) (setcar children ...)) ((stringp expansion) (setq children ...)) ((stringp ...) (setcar children ...) (setq children ...)) (t (setq children ...)))
(let* ((this-part ...) (prev-part ...) (entity ...) (expansion ...)) (cond (... ...) (... ...) (... ...) (... ...) (... ... ...) (t ...)) (setq point end-point))
(while (string-match "&\\([^;]+\\);" string point) (setq end-point (match-end 0)) (let* (... ... ... ...) (cond ... ... ... ... ... ...) (setq point end-point)))
(let ((point 0) children end-point) (while (string-match "&\\([^;]+\\);" string point) (setq end-point ...) (let* ... ... ...)) (cond (... ...) (... ...) (... string) (t ...)))
xml-substitute-special("The chief of Guinea-Bissau's army is killed by rebel soldiers in what is described as a "revolt" over unpaid wages.")
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-07 17:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-07 1:06 xml.el bug Katsumi Yamaoka
2004-10-07 17:58 ` Mark A. Hershberger
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.