Beta Release - Please Report Issues
Who is online? There are 2603 guests and 0 members online.
Member login | Become a member
home » Blogs » MikeDavis » For Each Node List Enumerator SSIS
posted 11/12/2009 by MikeDavis
To use the For Each NodeList Enumerator in SSIS we will need to point the connection to an XML file then set the OuterXPathString. This will be the name of the Node will two slashes in front. I downloaded an XML file from W3Schools.com and use it my example. It is an XML with many plan types and information about plants. One of the nodes is COMMON. To pull all of the nodes from the list we use a For Each Loop and set the OuterXPathString to //COMMON. We can set a breakpoint on the loop and use a watch window to see the value of the variables(Debug>Windows>Watch, only during Debug).
We will see each of the values for Common change as we continue through the breakpoints. I set the breakpoint to each iteration of the loop. You can then save the value in a variable under variable mappings in the For Each Loop.
MikeDavis (Member since: 10/27/2009) Mike Davis, MCTS, Senior Business Intelligence Consultant and Trainer at Pragmatic Works. He is an author on Knight's 24-Hour Trainer: Microsoft SQL Server 2008 Integration Services. Mike is an experienced speaker and has presented at many events such as several SQL Server User Groups across the US, Code Camps, SQL Server Launches, and SQL Saturday events. Mike is an active member at his local user group (JSSUG) in Jacksonville, FL.
View MikeDavis 's profile
Comment (No HTML)
It's fast, easy and free! Submit articles, get your own blog, ask questions & give answers in the forums, and become a better developer, faster.
enter your email address: