Wednesday, August 1, 2007

Blogger API, xml sample

Here's the XML code is used as test:

simple_post(AuthToken) ->
Data =
<<"<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>
<entry xmlns=\"\">
<title type=\"text\">UberKwl</title>
<content type=\"xhtml\">
<div xmlns=\"\">
<p>test post</p>
<author> <name> Gautier </name> <email> </email>
request(AuthToken, Data).

Really, really simple, and this was extracted from a previous post somewhere in the google Blogger API groups...

I've 'xmllint'ed it and of course it was correct...

No comments: