Foreach Loop Nodelist Enumerator

Play Foreach Loop Nodelist Enumerator
Sign in to queue


This Video Tutorial illustrates how to use Nodelist enumerator to loop through an XML content with Foreach Loop structure.

Nodelist uses XPath query language for interating through nodes, elements, attributes of an xml content, that might come from file, variable, or static string.

In this sample we call a web service to select name of all teams played in Football worldcup 2010 (reference for this web service is Then through the Foreach loop container, which choosing Nodelist enumerator with ElementCollection, we loops through each team information with OuterXPath, and then fetch name based on the InnerXPath, and load it into the TeamName variable.

The TeamName variable then will be used as an input parameter for the second web service to fetch the full details of each name into xml file named based on the team, such as Brazil.xml.



Right click to download this episode

The Discussion

Add Your 2 Cents