?

Log in

No account? Create an account
Hi, I am writing a client to post an entry to livejournal using… - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

[Mar. 14th, 2005|04:36 pm]
LiveJournal Client Discussions
lj_clients
[sleemanbrown]
Hi,

I am writing a client to post an entry to livejournal using xml-rpc protocol. According to the documentation, it accepts html code. However it doesn't work when the entry contains html code. Any idea will be appreciated.

Mark
linkReply

Comments:
[User Picture]From: anne78
2005-03-17 07:13 pm (UTC)
It might be because XML-RPC is XML based (obviously) so anything you send has to be well formed XML. I am assuming the HTML your sending is not. Therefor you will need to wrap the HTML in CDATA tags, e.g

If you are using a third party XML-RPC library then you will need to look at it's documentation to see if there is a peramiter to send HTML. Or just manualy send the CDATA tags round your XML.
(Reply) (Thread)