Not to sure if I understand you correct but....
so the FOO tags in you xmlNode object are repeating.
What you then can do is to first count how many of these tags you have. Then put a repeating section in your infopath view and put a textbox control into this repeating section.
No you need to create as many repeating sections as you counted tags in your xml string, this you can do with the following code:
int requiredsections = XmlNodeObject.SelectNodes("your xPathString").length
Now you can just hide the complete repeating sections, put a dropdownlist to your view and bind it to the textboxcontrol within your hidden section.
for(int i = 1; i < requiredSections; i++)
{
string myRepeat = thisXDocument.DOM.selectSingleNode("my:myFields/my:group1/my:group2").xml;
IXMLDOMDocument oXml = thisXDocument.CreateDOM();
oXml.async = false;
oXml.loadXML(myRepeat);
IXMLDOMNode parentNode = thisXDocument.DOM.selectSingleNode("my:myFields/my:group1");
parentNode.appendChild(oXml.documentElement);
}
Like this you have as many repeating sections as needed including the textbox controls
now just fill the textbox controls
for(int j = 1; j < requiredSections; j++)
{
thisXDocument.DOM.selectSingleNode("my:myFields/my:group1/my:group2[" + j + "]/field1").text = XmlNodeObject.selectSingleNode(yourXPathString).InnerText;
}
[/code]
If you now want to represent these data in a better way just hide the complete repeating sections from the view, enter a dropdownlist to your view and bind it to the textbox control within your repeating section, like this you have all values in the ddl.
Does this help ?