To expand, I have a list held in a process-level XML field that contains active directory groups. It looks like this:
<Root>
<CriticalProfiles>eShare Users</CriticalProfiles>
<CriticalProfiles>eShare Managers</CriticalProfiles>
<CriticalProfiles>eShare Advisers</CriticalProfiles>
<CriticalProfiles>eShare Corporate</CriticalProfiles>
</Root>
I need to write each item in that list to a seperate row in a SQL table.
Using a SQL Data Event, it works - but it only writes the first item in the list.
I need it to loop through and write each item on a new row.
A search on the forum found the following for parsing XML for email:
.Value, "my:myXMLRoot/my:EmailElements");
for (int i = 0; i < xmlNodeList.Count; i++)
{
//do something with the value of the element, maybe append it to a string
emailText += xmlNodeList.Item(i).InnerXml;
}
Any kind soul out there feel like helping me modify this for a SQL event?
Many thanks,
Rich