wiki:returnTree

The Standard Return Tree

The standard return tree is an xml tree returned by action function (like create/delete/...). It contains information about the success/fialure of a function including error codes and optional information as described in ErrorMessages.

failure tree

<MODULNAME>
  <functionName error="ERRORNUMBER" success="false">
    <FIELD>fieldname</FIELD>
  </functionName>
</MODULNAME>

Example: Forum

<FORUM>
  <createEntry error="27" success="false">
    <FIELD>create</FIELD>
  </createEntry>
</FORUM>

success tree

<MODULNAME>
  <funktionName success="true" id="ID"/>
</MODULNAME>

Example: Forum

<FORUM>
  <createEntry success="true" id="45234509435"/>
</FORUM>