Added initial code for dgml output