- added prototype for building xml