* xml.el can't handle some doctypes
@ 2003-03-10 22:55 Mark A. Hershberger
0 siblings, 0 replies; only message in thread
From: Mark A. Hershberger @ 2003-03-10 22:55 UTC (permalink / raw)
Parsing the following valid XML causes an "XML: Invalid
character":
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
<!ENTITY % HTMLlat1 PUBLIC
"-//W3C//ENTITIES Latin 1 for XHTML//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
%HTMLlat1;
]>
<rdf:RDF/>
Following patch fixes the problem:
*** lisp/xml.el-orig Mon Mar 10 16:53:06 2003
--- lisp/xml.el Mon Mar 10 16:52:53 2003
***************
*** 323,328 ****
--- 323,329 ----
(condition-case nil
(progn
(forward-word 1) ;; name of the document
+ (goto-char (- (re-search-forward "[[:space:]]") 1))
(goto-char (- (re-search-forward "[^[:space:]]") 1))
(if (looking-at "\\[")
(re-search-forward "\\][[:space:]]*>" end)
Diff finished at Mon Mar 10 16:53:15
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-10 22:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-10 22:55 xml.el can't handle some doctypes 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.