Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2008
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Blogger API, insert post issue

    Hi there, i am trying to submit a post via blogger's atom api but i do
    not succeed. The authentification process works well, so the curl
    process works well too, but the problem seems to be with the XML
    entry.
    Here it is:
    $entry="<?xml version='1.0' encoding='utf-8'?>
    <entry xmlns='http://www.w3.org/2005/Atom'>
    <author>
    <name>Clapon Cosmin</name>
    <email>cosminx2...@gmail.com</email>
    </author>
    <title type='text'>Entry 1</title>
    <content type='text'>This is my entry</content>
    </entry>";
    =====================================================
    The RESPONSE is :
    The processing instruction target matching "[xX][mM][lL]" is not
    allowed.
    =====================================================
    I tried a lot of xml parts found on other websites but i got problems
    as well.

    Does anyone know how could i fix it? i really need to insert posts to
    Blogger from an external command.

    PS: i'm working with PHP
    Last edited by cosminx2003; 06-25-2009 at 08:37 AM.

  • #2
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,460
    Thanks
    1
    Thanked 23 Times in 21 Posts
    It sounds like it's choking on the <?xml ?> line at the start of the entry - try removing that.
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •