Here's a possible solution which may be dodging the actual question.
Like I mentioned in the comments, I dont think you actually need the "foreach container". Use The "XML Source" to directly import all of your data. Next, as per your "DT_WSTR" error I would advise you to use either a "Data Conversion" or a "Derived Column" component to add a maximum length to your Columns.
Finally, you can use the "OLE DB Destination" if you are inserting the data into a table. I was under the impression that you wanted to update some existing data, in which case, I have always used an "OLE DB Command" with an UPDATE statement.