IBM Support

Foreach iteration counter in an XML Map

Question & Answer


Question

I am using the foreach transformation in an XML map to copy data from one array type to another. How do I access and use the iteration counter?

[{"Product":{"code":"SSQQFK","label":"WebSphere Integration Developer"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Product Usage","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.5;7.0.0.4;7.0.0.3;7.0.0.2;7.0.0.1;7.0","Edition":"All Editions","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Product":{"code":"SSTLXK","label":"IBM Integration Designer"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Product Usage","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"7.5;7.5.0.1;7.5.1;7.5.1.1;8.0;8.0.1;8.0.1.1;8.0.1.2;8.5;8.5.0.1","Edition":"Advanced","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
WebSphere Integration Developer

Software version:
7.0.0.5, 7.0.0.4, 7.0.0.3, 7.0.0.2, 7.0.0.1, 7.0

Operating system(s):
Linux, Windows

Document number:
409183

Modified date:
15 June 2018

UID

swg21450489

Manage My Notification Subscriptions