A method and system for automatically generating source code based on a
mark-up language message definition. A mark-up language message
definition is received. A first in-memory representation of the message
definition is generated based on the received message definition. A
second in-memory representation of source code is generated based on the
first in-memory representation of the message definition.