Added very high level pseudo code for XML return