[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with xml-parse-string
From: |
Chong Yidong |
Subject: |
Re: Problems with xml-parse-string |
Date: |
Wed, 22 Sep 2010 11:46:11 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Lars Magne Ingebrigtsen <address@hidden> writes:
> Chong Yidong <address@hidden> writes:
>
>> So either the new libxml functions have to provide the same format as
>> xml.el, or xml.el has to be changed to used the new format, breaking
>> existing uses. I am amenable to the latter if the new format is so much
>> better than the old one that it's worth dealing with the backward
>> compatibility headaches.
>
> I'd volunteer for changing the callers to use the new format if you
> change xml.el to do the same.
First let me clarify a technical detail. In your new format,
(catalog
(text . "\n ")
(book
(:type . "manual")
(text . "\n ")
(title
(text . "GNU Emacs manual"))
(text . "\n "))
(text . "\n"))
seems to assume that element names never start with the colon character.
That is, there can never be an element named ":type".
The XML spec (http://www.w3.org/TR/2008/REC-xml-20081126/) seems to
indicate that element names are allowed to start with a colon; see the
definition of NameStartChar in section 2.3.
It looks like the new format would give ambiguous results in that case.
- Re: Problems with xml-parse-string, (continued)
- Re: Problems with xml-parse-string, Leo, 2010/09/26
- pcase.el (was: Problems with xml-parse-string), Ted Zlatanov, 2010/09/25
- Re: pcase.el, Stefan Monnier, 2010/09/26
- Re: pcase.el, Leo, 2010/09/27
- Re: pcase.el, Stefan Monnier, 2010/09/27
- Re: pcase.el, Ted Zlatanov, 2010/09/28
- Re: Problems with xml-parse-string, Andrew W. Nosenko, 2010/09/24
- Re: Problems with xml-parse-string, Kevin Rodgers, 2010/09/22
- Re: Problems with xml-parse-string, Chong Yidong, 2010/09/22
- Re: Problems with xml-parse-string, Lars Magne Ingebrigtsen, 2010/09/22
- Re: Problems with xml-parse-string,
Chong Yidong <=
- Re: Problems with xml-parse-string, Lars Magne Ingebrigtsen, 2010/09/22
- Re: Problems with xml-parse-string, Wojciech Meyer, 2010/09/22
- Re: Problems with xml-parse-string, Andy Wingo, 2010/09/22
- Re: Problems with xml-parse-string, Chong Yidong, 2010/09/22
- Re: Problems with xml-parse-string, Edward O'Connor, 2010/09/22
- Re: Problems with xml-parse-string, Leo, 2010/09/22
- Re: Problems with xml-parse-string, Chong Yidong, 2010/09/22
- Re: Problems with xml-parse-string, Wojciech Meyer, 2010/09/22
- Re: Problems with xml-parse-string, Stefan Monnier, 2010/09/22