I\'d like to repeatedly add a elect to and xml structure, the number of times depends on a value attribute.