I've read the example above, but am not sure how to get the collection of XML fragments. Here is my situation:
I've got an InfoPath form with the following schema:
I'm trying to gather a collection of all of the RequestedOPSSources (e.g. Bank, Loan, Tax Credit).
In my workflow, I use a Query XML action. I set the XML source to the current item (my InfoPath form instance), provide the Xpath /my:myFields/my:OPSFunding/my:RequestedOPS/my:RequestedOPSSources, process results as text, and store the result in a collection variable called CollOPSSources.
When I loop through the collection, I get a single item with all of the values smashed together like this BankLoanTaxCredit. I do not have the same issue if my:RequestedOPSSources is a repeating group, which it is not. Can someone please help me understand how to get the individual values into a collection so that I can then further process them?