[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: url-dav and Radicale
From: |
Eric Abrahamsen |
Subject: |
Re: url-dav and Radicale |
Date: |
Wed, 04 May 2016 08:05:33 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Yuri Khan <address@hidden> writes:
> On Sun, May 1, 2016 at 3:10 PM, Eric Abrahamsen <address@hidden> wrote:
>
>> In a nutshell, Emacs' url-dav.el library, when parsing responses from a
>> DAV server, assumes XML node names that are all prefixed with "DAV:".
>> Ie, "DAV:multistatus".
>
> As far as I can see, url-dav-process-response calls xml-parse-region
> with the last argument set to 'symbol-qnames, which does the right
> thing for non-default XML namespace prefixes whose URI is "DAV:".
> Here:
>
> <foo:multistatus xmlns:foo="DAV:">
> </foo:multistatus>
>
> M-: (xml-parse-region nil nil nil nil 'symbol-qnames)
>
> ⇒ ((DAV:multistatus ((... . "DAV:")) "
> "))
>
> However it does not handle the default namespace for me:
>
> <multistatus xmlns="DAV:">
> </multistatus>
>
> M-: (xml-parse-region nil nil nil nil 'symbol-qnames)
>
> ⇒ ((multistatus ((http://www\.w3\.org/2000/xmlns/xmlns . "DAV:")) "
> "))
>
> That’s a bug in xml.el.
The above should be enough for me to open a bug report, right?