Jason (krolain) wrote in lj_clients,
Jason
krolain
lj_clients

  • Mood:

XML - LJ.XMLRPC.postevent - props member

Evening everyone.

I got another question (I hope I'm not bugging anyone too much) regarding the postevent through XML this time.

So far, it seems whenever I use this member I get an LJ XML parsing issue. So, I'm rather confused on how to use this member to set the various properties. Based on the document, I tried it these way so far:

<MEMBER>
  <NAME>props</NAME>
  <VALUE>
    <ARRAY>
      <DATA>
        <VALUE>
          <STRUCT>
            <MEMBER>
              <NAME>current_mood</NAME>
              <VALUE><STRING>curious</STRING><VALUE>
            </MEMBER>
           </STRUCT>
         </VALUE>
        <VALUE>
          <STRUCT>
            <MEMBER>
              <NAME>current_music</NAME>
              <VALUE><STRING>music</STRING><VALUE>
            </MEMBER>
           </STRUCT>
         </VALUE>
       </DATA>
     </ARRAY>
   </VALUE>
</MEMBER>


and I also tried it in this way:

<MEMBER>
  <NAME>props

So, both these things seems to get me a parsing error from LJ.  Are both these correct, or is there another way?  Is the document up to date on this?  I'm just a bit confused about this and getting a tad furstrated.  I even tried with just one prop and it fails.  I know my XML code work because I can do other things like log in and view, add, remove and edit my LJ groups and LJ friend lists.

Help would be appreciated.

Thanks everyone!
Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 10 comments