2022.2

Table Of Contents
1. Right-clickoneoftherepeatingelementsandselectAdd Repeat.
ThisaddsaRepeat steptothedatamappingconfiguration.
Bydefault,theRepeat typeofthisstepissettoFor Each,sothateachoftherepeatedelements
isiteratedover.YoucanseethisontheStep propertiespane,aslongastheRepeatstepis
selectedontheStepspane.IntheCollectionfield,youwillfindthecorrespondingnodepath.
Tip: YoumayedittheXPathintheCollectionfield,toinclude or excludeelementsfrom
theloop.OneexampleofthisisgiveninaHow-to:UsingXpathinaRepeatstep.
TheexampleintheHow-tousesthestarts-with()function.ForanoverviewofXPath
functions,seeMozilla:XPathFunctions.
Inaddition,itispossibletouseJavaScriptstatementsinanXPathintheCollectionfieldto
dynamicallyselectelements;see"RepeatDefinition"onpage339.
TheGotostepisn'tusedinXMLextractionworkflowsinmostcases.TheDataMappermoves
throughthefileusingXpath,apath-likesyntaxtoidentifyandnavigatenodesinanXMLdoc-
ument.
2. (Optional.)AddanemptydetailtableviatheDataModelpane:right-clicktheDataModeland
selectAddatable.Givethedetailtableaname.
3. SelecttheRepeatstepontheStepspane.
4. Extractthedata:insidearepeatingelement,selectthedatathatyouwanttoextract.Thenright-
clicktheselectednodesandselectAdd Extraction,ordrag&dropthemintheDataModel.
Whenyoudrag&dropdataonthenameofadetailtableintheDataModelpane,thedataare
addedtothatdetailtable.
DroppingthedatasomewhereelseontheDataModelpanecreatesanewdetailtable,witha
Page 239