xmlwordpressxml-rpcmetaweblog

Input XML for WordPress' XMLRPC


Is there any example of the XML structure for WordPress' XMLRPC service? Specifically with the metaWeblog.newPost method inside.

Thanks a lot!


Solution

  • I think you'll find that the Atom Publishing Protocol ("AtomPub") is a much more well-defined, well-documented, easy to use API than Metaweblog's XMLRPC API. The format of AtomPub is that of the Atom Syndication Format which is very cleanly defined and has lots of implementations in many different languages.

    AtomPub has been supported in WordPress since version 2.3, so unless you're on an older version than that, it should just be to POST your <entry> documents to your heart's desire.