parsing struct definition to output sample xml, parsing code, etc.