Read the full tutorial at v-nessa.net:
http://www.v-nessa.net/2008/05/07/sexifying-whm-with-xml-api
The XML API’s allow you to script many of the WHM reseller functions using perl or PHP. This is particularly useful for external scripts and integration, or just giving your resellers access to perform certain functions without using WHM.