Generate sourcecode from xml model definitions