ofXml - help on loading a vector of ints appreciated

Hello! I am using ofXml to make my save game file. It was going very well. Each object saved and loaded itself to a larger xml file. However I am having some difficulty retrieving a large vector of ints using ofXml.

For example this code


Happily produces this output within the xml file. (these are the correct example values)

<populationControlled>{1, 0, 3, 4, 4, 4, 4}</populationControlled>

So far so good. But how do you retrieve this data during the load sequence?

I have cleared and resized my vector ready to take the data but for the life of me I am struggling with the right command to access each element and get them out of the xml file.

Any help appreciated!