Generating xml from inputs work-in-progress