From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-devel@gnu.org
Subject: Re: url-dav and Radicale
Date: Wed, 04 May 2016 08:05:33 +0800 [thread overview]
Message-ID: <87oa8mhelu.fsf@ericabrahamsen.net> (raw)
In-Reply-To: CAP_d_8Uk0jUFWSWXovubxyv0VPaq14nBrK0G-rjXJ98191=LfA@mail.gmail.com
Yuri Khan <yuri.v.khan@gmail.com> writes:
> On Sun, May 1, 2016 at 3:10 PM, Eric Abrahamsen <eric@ericabrahamsen.net> 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?
next prev parent reply other threads:[~2016-05-04 0:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-01 9:10 url-dav and Radicale Eric Abrahamsen
2016-05-01 10:23 ` Yuri Khan
2016-05-01 10:34 ` Eric Abrahamsen
2016-05-04 0:05 ` Eric Abrahamsen [this message]
2016-05-04 0:14 ` Lars Ingebrigtsen
2016-05-04 0:36 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oa8mhelu.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.