[wp-xmlrpc] what clients send an XML declaration in XML-RPC requests?
Brandon Turner
bturner at microsoft.com
Sat Jul 25 20:06:02 UTC 2009
Windows Live Writer by default sends:
<?xml version="1.0" encoding="utf-8"?>
However, we allow users to change the encoding(though, I believe there are bugs in Wordpress that always assume utf-8, or at least plugins that might always expect utf-8), so it is possible WLW could send something like:
<?xml version="1.0" encoding="iso-8859-1"?>
Windows Live Writer generates its XML payload using the .NET class XmlTextWriter which generates this declaration. I would imagine most .NET based would do the same thing.
I am also pretty interested in what brings this topic up.
-Brandon
-----Original Message-----
From: wp-xmlrpc-bounces at lists.automattic.com [mailto:wp-xmlrpc-bounces at lists.automattic.com] On Behalf Of Daniel Jalkut
Sent: Saturday, July 25, 2009 9:18 AM
To: wp-xmlrpc at lists.automattic.com
Subject: Re: [wp-xmlrpc] what clients send an XML declaration in XML-RPC requests?
Hi Joseph - MarsEdit does include the preamble and it looks like your example but also includes content-encoding information:
<?xml version="1.0" encoding="utf-8"?>
Is there some context for why you're asking about this? Just curious if we can help brainstorm an answer to whatever is on your mind.
Daniel
On Jul 24, 2009, at 7:00pm, Joseph Scott wrote:
>
> One of the first things that WordPress does when processing an XML-
> RPC request is look for an XML declaration, something like:
>
> <?xml version="1.0"?>
>
> It strips this off if it is found so that it can parse the rest of the
> request as XML.
>
> To those of you out there that are writing blog clients for WordPress
> I have a question. Do you include this declaration at the top of your
> requests? If so, is it identical to this one or is it different?
>
> --
> Joseph Scott
> joseph at josephscott.org
> http://josephscott.org/
>
>
>
>
> _______________________________________________
> wp-xmlrpc mailing list
> wp-xmlrpc at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-xmlrpc
_______________________________________________
wp-xmlrpc mailing list
wp-xmlrpc at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-xmlrpc
More information about the wp-xmlrpc
mailing list