[wp-xmlrpc] Preserving Content Whitespace
nico
nsebban at gmail.com
Thu Sep 16 22:36:27 UTC 2010
Hello,
I'm not very used to IXR_Client, but I had the same problem in the past,
when parsing XML in PHP with the libxml functions. There seems to be a
behaviour in the parser that removes the whitespaces between tags and in
tags content. Looked like it was 2 distinct problems, too.
My issue was fixed by setting the correct option in my parser initialization
(from the top of my head it was something close to XML_NOBLANKS or
XML_NOEMPTY), and putting my content between [CDATA[]] markers. I'm not sure
your problem is exactly the same as mine, but it may be worth looking into.
Nicolas
On Thu, Sep 16, 2010 at 11:33 PM, Tim Golen <tim at golen.net> wrote:
> Hey All,
>
> It appears that when I pull posts from the Wordpress API using
> method metaWeblog.getPost and the IXR_Client to make the calls, I lose the
> original white space. Any ideas on why that's happening or how to keep it
> from happening?
>
> Thanks,
> Tim
>
> _______________________________________________
> wp-xmlrpc mailing list
> wp-xmlrpc at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-xmlrpc
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.automattic.com/pipermail/wp-xmlrpc/attachments/20100917/46e56e70/attachment.htm>
More information about the wp-xmlrpc
mailing list