?

Log in

No account? Create an account
LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

XML - LJ.XMLRPC.postevent - props member [May. 18th, 2004|08:31 pm]
LiveJournal Client Discussions

lj_clients

[krolain]
[mood |confusedconfused]

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!
linkReply

Comments:
[User Picture]From: krolain
2004-05-22 03:03 pm (UTC)
Thanks for the help. It's what I suspected, but I wanted someone else to confirm it.
(Reply) (Parent) (Thread)