General:

The API usually returns an xml structure containing return data. This layout may vary from command to command, but this is generally what I have found.

<commands>
   <command>
     <type>Name of command</type>
     <result>usually 1 or 0</result>
     <message>Some additional return data</message>
   </command>
</commands>

other kinds of XML returns

<records>
  <metarecord>
  // contains some meta information about result set
  </metarecord>
  <record>
  // data
  </record>
  <record>
  // data
  </record>
</records>