Inside for-each loop

hi,
I gave one for-each loop inside one row, the table which am using has three columns and two rows, at first row there are column headings and second row first column i started for-each loop and ended end for-each loop at third column. Now I am getting displayed multpile rows for each occurence of elements that is fine but How can I get rid of lines which is occuring between each rows. Is there any way to deal this.
Thanks :)

send me you template and xml to my id in profile.

Similar Messages

  • SSIS Help For each Loop Container

    I need a little help with this process that I am developing. I am fairly new to SSIS so please bear with me. I have done research online so If I seem limited in my knowledge please apologize me.
    Requirement: I have a folder where we will have flat files monthly they could be one or more...
    each file will have the following name standard "123456.EEAKQ2.EASDREWA12A.BID".
    What I need to do is maintain a table which will have filename and date when it was added to the folder.
    I have created a package with the following components "For each loop" which grabs files from a source folder.
    This is where I am stuck. I need to grab the file name from the path and insert it into the table.
    Can someone help me with this?
    Thank you
    FM
    FM

    See similar requirement implemented here
    What you need is to declare and use a variable inside for each loop to get filename each time. Then you may use script task to check for pattern within the file for identifying correct files
    http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Usage of for-each loop inside another for-each loop

    Hi All,
    I have tried using a for-each loop inside another for-each loop as given below.
    <?for-each:G_1?>
    <Customer Details>
    <?for-each:G_2?>
    <Address>
    <?end for-each?>
    <?end for-each?>
    Its not getting inside the second loop.I have referred this link
    Re: Loop Question but it didn't help me much.Please let me know if am going wrong somewhere.
    Regards,
    Sudeep.

    Sudeep,
    The syntax of the for-each statements looks oke. but you have omitted some question marks after the < and before the >.
    Furhermore, there cannot be spaces in XML element names. So, "Customer Details" won't work. Change it to something like: "Customer_Details". Also be reminded that the element names are case-sensitive.
    try this:
    <?for-each:G_1?>
    <?Customer_Details?>
    <?for-each:G_2?>
    <?Address?>
    <?end for-each?>
    <?end for-each?>
    Regards,
    Kevin

  • For each loop not working

    My trace statements inside my for each loop won't show.
    Please someone check my code. I"m getting no errors in flex
    builder. When i debug all vars are holding prober data. Thanks so
    much

    "essa tkinen" <[email protected]> wrote in
    message
    news:gr27rt$3sb$[email protected]..
    > yes there is data there a commas delimited list of
    keywords that are
    > catagorys. the selectedCatArray holds at list one
    element. I want to
    > return true if element is in that list
    For one thing, you're going to exit the function in the first
    iteration,
    because you return the result inside the loop. Return
    immediately exits the
    function. For another, I'd be tempted to switch it to
    something more like
    this:
    for (var i = 0; i<_item.cats.length; i++) {
    var iCat=item.cats
    //do your stuff here
    I have had really bad luck getting for each in to work the
    way I think it
    should.
    HTH;
    Amy

  • For Each Loop: Enumerator Configuration In the For each loop Editor Help needed

    Hi All,
    I have a package that runs and updates a table with everytime someone adds a flat file in the source folder. One of the requirement is to upload files with the following
    ACA Flat files will have a naming convention of “ACA_ccyy_<julian date>”  : How can I add this?
    Under Files this is how I have setup the qualifies "ACA_*.*"
    Is there anyway to pass the entire naming convention in the file section? If so how can I ?
    Please help?
    FM

    As you have ACA_*.* set in Files Filter, it will return all the files from the folder which start with ACA_.
    You can have one dummy Sequence Container inside FE Loop Container. Connect it to your starting task and do right click on Precedence Constraint and write the expression the way you want by using SSIS functions. If the expression is evaluated to True only
    then it will go to the next task.
    In this way you can skip Non-ACA files.
    Please refer:
    SSIS Skip Certain Files in a For Each Loop
    - Vaibhav

  • Unable to set a new value in an extended property from within a For Each Loop

    Setting a new value in an extented property fails when the property is dereferenced within a For Each loop usin the item  iterator. However, if you use the First or Last Iterators from the Find Targets activity works fine.
    The error message is : "Setting a value for this object type is not allowed"
    I believe this is a defect, can you please confirm

    Looks like a bug that needs to be reported.
    While we are figuring out the issue you can work around the bug.
    Add another "Find Targets" inside the loop, and use the ID of the current item in the loop to find the target (again) by ID.
    And then use Set Variable on the target that was just found...
    I know... Not an ideal workaround, so please open a Severity 4 bug for this.

  • For-each loop atom not executing in B1if processing step

    Dear All,
    I have designed scenario in B1if in which Inbound is SAP ERP(ECC) IDOC and Outbound is UDO object. In this scenario I have loop placed in it, on the basis of IDOC fields I am executing query but it's not going inside the loop, I have entered correct path in loop. Please see attached image of processing, for loop path and inbound message.
    for-each path : /vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']/ZSD_IDOC_B1_JW_ASN/IDOC/ZSD_SEG_B1_ASN_SO
    Inbound Message :
    - <Payload Role="S" mode="0">
    - <ZSD_IDOC_B1_JW_ASN xmlns="">
      <?msgid 150402232456625499260A1301F349C4?>
    - <IDOC BEGIN="1">
    - <EDI_DC40 SEGMENT="1">
      <TABNAM>EDI_DC40</TABNAM>
      <MANDT>120</MANDT>
      <DOCNUM>0000000000425819</DOCNUM>
      <DOCREL>731</DOCREL>
      <STATUS>30</STATUS>
      <DIRECT>1</DIRECT>
      <OUTMOD>2</OUTMOD>
      <EXPRSS />
      <TEST />
      <IDOCTYP>ZSD_IDOC_B1_JW_ASN</IDOCTYP>
      <CIMTYP />
      <MESTYP>ZSD_MSG_B1_ASN</MESTYP>
      <MESCOD />
      <MESFCT />
      <STD />
      <STDVRS />
      <STDMES>ZSD_MS</STDMES>
      <SNDPOR>SAPJED</SNDPOR>
      <SNDPRT>LS</SNDPRT>
      <SNDPFC />
      <SNDPRN>JED120</SNDPRN>
      <SNDSAD />
      <SNDLAD />
      <RCVPOR>B1IFPORT</RCVPOR>
      <RCVPRT>LS</RCVPRT>
      <RCVPFC />
      <RCVPRN>B1IFSYS</RCVPRN>
      <RCVSAD />
      <RCVLAD />
      <CREDAT>20150402</CREDAT>
      <CRETIM>175415</CRETIM>
      <REFINT />
      <REFGRP />
      <REFMES />
      <ARCKEY />
      <SERIAL>20150221173915</SERIAL>
      </EDI_DC40>
    - <ZSD_SEG_B1_ASN_SO SEGMENT="1">
      <SO_CREATE_DATE>04000205</SO_CREATE_DATE>
      <DELIVERY_DATE>04000205</DELIVERY_DATE>
      <CARD_CODE>04000205</CARD_CODE>
      <CARD_NAME>04000205</CARD_NAME>
      <SO_POSTING_DATE>04000205</SO_POSTING_DATE>
      <CUST_REF_NO>04000205</CUST_REF_NO>
      <PO>04000205</PO>
      <PO_ITEM>04000</PO_ITEM>
      <PO_MATERIAL>0400020504000205</PO_MATERIAL>
      <PO_QUANTITY>040002050400020</PO_QUANTITY>
      <PO_UOM>400</PO_UOM>
      <BOM_COMPONENT1>04000205</BOM_COMPONENT1>
      <BOM_COMPONENT2>04000205</BOM_COMPONENT2>
      <_--357F4>04000205</_--357F4>
      <ITEM_CODE>04000205</ITEM_CODE>
      <ITEM_NAME>04000205</ITEM_NAME>
      <QUANTITY>04000205</QUANTITY>
      <GROSS_WT>04000205</GROSS_WT>
      <NET_WT>04000205</NET_WT>
      <PCSPERPKT>0400020504000205</PCSPERPKT>
      <CUST_REQ_PKTWT>04000205</CUST_REQ_PKTWT>
      <ECC_BATCH>04000205</ECC_BATCH>
      <ECC_BATCH_QUALITY>04000205</ECC_BATCH_QUALITY>
      <SO_NO>04000205</SO_NO>
      <SO_ITEM>040002</SO_ITEM>
    - <ZSD_SEG_B1_ASN_CHARS SEGMENT="1">
      <S_PROD_TYPE>S_CRCACF</S_PROD_TYPE>
      <S_PROD_FORM>S_CRCACF</S_PROD_FORM>
      <S_PLANT>S_CRCACF</S_PLANT>
      <S_SUB_CON_SENDING_MAT>S_CRCACF</S_SUB_CON_SENDING_MAT>
      <S_JSW_GRADE>S_CRCACF</S_JSW_GRADE>
      <S_THICK_MM>S_CRCACF</S_THICK_MM>
      <S_WIDTH_MM>S_CRCACF</S_WIDTH_MM>
      <S_EQ_SPEC>S_CRCACF</S_EQ_SPEC>
      <S_UNITISATION>S_CRCACF</S_UNITISATION>
      <S_EDGE_CON>S_CRCACF</S_EDGE_CON>
      <S_COIL_ID_MM>S_CRCACFS_CRCACF</S_COIL_ID_MM>
      <S_PACKAGING_TYPE>S_CRCACF</S_PACKAGING_TYPE>
      <S_OIL_TYPE>S_CRCACF</S_OIL_TYPE>
      <S_OILING_CODE>S_CRCACF</S_OILING_CODE>
      <S_OIL_REQ>S_CRCACF</S_OIL_REQ>
      <S_END_APPN>S_CRCACF</S_END_APPN>
      <S_INT_EDGE_CON>S_CRCACF</S_INT_EDGE_CON>
      <S_SKINPASS_REQ>S_CRCACF</S_SKINPASS_REQ>
      <S_SURFACE_FINISH>S_CRCACF</S_SURFACE_FINISH>
      <S_ROUGHNESS_CODE>S_CRCACF</S_ROUGHNESS_CODE>
      <S_TOL_TYPE>S_CRCACF</S_TOL_TYPE>
      <S_THICK_TOL_TYPE>S_CRCACF</S_THICK_TOL_TYPE>
      <S_THK_TOL_MM_UPPER>S_CRCACF</S_THK_TOL_MM_UPPER>
      <S_THK_TOL_MM_LOWER>S_CRCACF</S_THK_TOL_MM_LOWER>
      <S_WDTH_TOL_MM_UPPER>S_CRCACF</S_WDTH_TOL_MM_UPPER>
      <S_WDTH_TOL_MM_LOWER>S_CRCACF</S_WDTH_TOL_MM_LOWER>
      <S_LENGTH_TOL_MM_UPPER>S_CRCACF</S_LENGTH_TOL_MM_UPPER>
      <S_LENGTH_TOL_MM_LOWER>S_CRCACF</S_LENGTH_TOL_MM_LOWER>
      </ZSD_SEG_B1_ASN_CHARS>
      </ZSD_SEG_B1_ASN_SO>
    - <ZSD_SEG_B1_ASN_SO SEGMENT="1">
      <SO_CREATE_DATE />
      <DELIVERY_DATE />
      <CARD_CODE />
      <CARD_NAME />
      <SO_POSTING_DATE />
      <CUST_REF_NO />
      <PO />
      <PO_ITEM />
      <PO_MATERIAL />
      <PO_QUANTITY />
      <PO_UOM />
      <BOM_COMPONENT1 />
      <BOM_COMPONENT2 />
      <_--357F4 />
      <ITEM_CODE />
      <ITEM_NAME />
      <QUANTITY />
      <GROSS_WT />
      <NET_WT />
      <PCSPERPKT />
      <CUST_REQ_PKTWT />
      <ECC_BATCH />
      <ECC_BATCH_QUALITY />
      <SO_NO />
      <SO_ITEM />
    - <ZSD_SEG_B1_ASN_CHARS SEGMENT="1">
      <S_PROD_TYPE />
      <S_PROD_FORM />
      <S_PLANT />
      <S_SUB_CON_SENDING_MAT />
      <S_JSW_GRADE />
      <S_THICK_MM />
      <S_WIDTH_MM />
      <S_EQ_SPEC />
      <S_UNITISATION />
      <S_EDGE_CON />
      <S_COIL_ID_MM />
      <S_PACKAGING_TYPE />
      <S_OIL_TYPE />
      <S_OILING_CODE />
      <S_OIL_REQ />
      <S_END_APPN />
      <S_INT_EDGE_CON />
      <S_SKINPASS_REQ />
      <S_SURFACE_FINISH />
      <S_ROUGHNESS_CODE />
      <S_TOL_TYPE />
      <S_THICK_TOL_TYPE />
      <S_THK_TOL_MM_UPPER />
      <S_THK_TOL_MM_LOWER />
      <S_WDTH_TOL_MM_UPPER />
      <S_WDTH_TOL_MM_LOWER />
      <S_LENGTH_TOL_MM_UPPER />
      <S_LENGTH_TOL_MM_LOWER />
      </ZSD_SEG_B1_ASN_CHARS>
      </ZSD_SEG_B1_ASN_SO>
      </IDOC>
      </ZSD_IDOC_B1_JW_ASN>
      </Payload>

    Hi Bastian,
    Thanks for response.
    In Graphical For-Each Loop I have used xpath </vpf:Msg/vpf:Body/vpf:Payload[./@Role='S']/ZSD_IDOC_B1_JW_ASN/IDOC/ZSD_SEG_B1_ASN_SO> and its correct as per the input message which I have shown in discussion, please correct me if I have done wrong inn xpath expression.
    As per my understanding I can not write loop in xslt because on the basis of some fields I am querying from database, if there is another way to achieve this please let me know.
    Thanks

  • TOC inside FOR EACH

    Hi,
    i have come across a requirement where i need to place a table of content inside a conditional loop. Basically, requirement is to get ToC for each opportunity in an XML.
    At the moment, i tried inserting the TOC using MS Word features but the output PDF/RTF is not rendering the table of contents. It is coming blank.
    The TOC is only rendered if it is placed outside the BIP code.
    is there any workaround for this, where i can place an MS WORD TOC inside BIP code.
    Many thanks
    Rohit

    Hy all,
    I've the same problem with TBW : putting a toc in a for each loop doesnt render in pdf output. It works outside loop but not inside. Any solution since las t post on subject ?
    Regards

  • For each loop container executing multiple times....

    Hi,
    We are using SQL SERVER version 2005.
    I am having a For each loop container and inside that container there are multiple Sequence containers and inside each sequence containers there are Execute SQL Tasks (which are just stored procedures).
    Now, when i run sequence containers individually they are running perfectly fine.
    But when I run the whole For each loop container, it is just running and running multiple times without ending the process.
    I really couldnt figure out what would be the issue?
    Any ideas????
    Thanks....

    Hi grk666,
    To check whether the values stored in the object type variable are correct, you can disable all the Sequence Containers within the Foreach Loop Container, and add a Script Task with the following code to display the string type variable value (supposing
    you use the string type variable StrVar to store the value retrieved from the object variable):
    MsgBox(Dts.Variables(“StrVar”).Value.ToString())
    It would be helpful if you could post a screenshot to show the package execution at runtime in BIDS.
    Regards,
    Mike Yin
    TechNet Community Support

  • Package Help needed For each Loop container

    Hello all,
    I need a bit of advice, I`m a newbee to SSIS so I`m learning. Here`s what I need. I have a EDI 837 file which needs to be converted and inserted into a sql table. These are multiple files and I need to maintain them with a monthly load. So I have a source
    folder where these files will be dumped. I created a Package which will grab the files process the EDI aspect inserts into the data into table. This is the story on a high level.
    Here`s what I did.
    Created a For each loop container.
    I have a stored proc which takes in a 837 files and gets the fields what I want and it inserts it into a staging table from there I have a data flow task which pipes it into my production table.
    Inside the loop first task is to exec the Stored Proc but my question is once a file is picked up from for each loop I need the file to be inserted into a table which I am referencing in my store proc. All the EDI conversion takes place in my SP and it references
    the table..
    My question is the For each loop container picks up the files but where does the data goes?? Can someone help me out
    FM

    The foreach loop container (file enumerator) only returns the filename or filepath which you can use as a parameter in an Execute SQL Task or within an expression on a connection manager (which can be used in a Data Flow). So it doesn't do anything with
    the file. You have to add a task within the loop to do something with the file (Execute SQL Task/Data Flow Task/File System Task/etc.).
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Excel Sheet Looping: For each loop from variable Enumerator

    Hi,
    Is it possible to do excel sheets looping using For each loop Enumerator as "For Each loop from Variable enumerator" ? If yes, please help.
    Also,
    I have an excel file with 10 sheets, but want to loop only 5 sheets. Please help..how can i achieve this. 
    Actually i tried with
    1> stored the 5 sheets name into a variable (say 'SheetsName') of type string using script task
    2> For each loop container
       enumerator - 'For each ADO Schema Rowset enumerator'
       connection: ADO
       schema: 'Tables'
       variable mapping: 'User::SheetsName'
    3> Within For each loop container added a data flow task
    4> Inside DFT - excel source - 
       Data access Mode: 'Table Name or view name variable'
       Variable Name: 'SheetsName'
    but this loops through all the 10 sheets irrespective of only 5 sheets names stored in the variable "SheetsName".
    Please help...
    Please Mark as Answer if my post solved your problem or Vote As Helpful if this helps. Blogs: www.sqlserver2005forum.blogspot.com

    >> Is it possible to do excel sheets looping using For each loop Enumerator as "For Each loop from Variable enumerator" ? If yes, please help.
    I don't think so. To loop through all worksheets of Excel For ADO.NET Schema Rowset Enumerator is the only option.
    Please refer:
    https://msdn.microsoft.com/en-us/library/ms345182(v=sql.110).aspx
    >> I have an excel file with 10 sheets, but want to loop only 5 sheets
    So you have configured For Each loop container which loops throgh all sheets and returns you sheet name to variable "SheetName".
    Drag and drop one Sequence Container inside ForEach Loop Container and connect it to Data Flow Task.
    Right click on connector and use expression: (which will check if current sheet is one of 5 required sheets)
    @User::SheetName == "FirstSheet" ||  @User::SheetName == "SecondSheet" || .....
    Below blog demonstrates kind of simillar steps:
    http://www.bidn.com/blogs/MikeDavis/ssis/559/ssis-skip-certain-files-in-a-for-each-loop 
    -Vaibhav Chaudhari

  • How to use for each loop in XSLT when my source is a multilayout file and db

    How do I use a for each loop in XSLT when my source is multilayout file and db .
    My multilayout file is basically contain 2 kind of data one for employee and another for dependent.
    Now my requirement is I want to read each line of data whether it is it is employee or dependent do a join with db and write it in my target file.
    eg :  File content
    1 RichaKumari 311289 TCS INDIA
    2 KiarnKumar 456782 BRO RichaKumari 311289 INDIA
    2 Ravi            456882 BRO RichaKumari 311289 INDIA
    eg : db Content
    311289 RichaKumari TCS INDIA Bangalore [email protected]
    Now in Final File I need something like this :
    1 RichaKumari 311289 TCS INDIA
    2 KiarnKumar RichaKumari 311289 TCS INDIA
    2 Ravi            RichaKumari 311289 TCS INDIA
    here 1 and 2 are the identifier which will decide which layout to follow .

    Hi,
    I think you'll need two nested for-each's... Something like...
    <xsl:for-each select="$root/row[layout = 1]">
    <xsl:variable name="employee" select="."/>
    ... write employee ...
    <xsl:for-each select="$root/row[layout = 2 and dependentid = $employee/id]">
    ... write dependent ...
    </xsl:for-each>
    </xsl:for-each>
    Cheers,
    Vlad

  • Loading accdb file using for each loop in to single target table

    I have 3 accdb file as below in single folder, in control flow I have created a for each loop to loop through all the below file.  In dataflow task I have created oledb source using connection manager to point to first file a1.accdb. I am trying
    to load all the file into single below mentioned target table, here It is only loading first file it is not looping through other two file.
    This I have tried to load .txt files and csv files it is working perfectly but similarly when I try to load access db file table it is not working, can any one of you help me?
    1. a1.accdb contains only one table  a1tab ( col1 col2 col3 )  
    2. a2.accdb  contains only one table  a2tab  ( col1 col2 col3 )
    3. a3.accdb  contains only one table  a3tab   ( col1 col2 col3 )
    I have a target table with similar structure as source
    Target table <TargetTable> Col1 Col2 Col3
    aak

    Thanks Arthur, please find below response
    How do you handle the different table names?  Cant we handle it in a similar manner, how we handle the .csv/.txt files with different name and similar structure for sources(multiple files) and target (single table)
    Is it good to drop the idea of for each loop and create a separate task for each accdb file? to be loaded to same target table( performance wise etc.. any justification would be helpful)
    You must handle the connection string dynamically?
    Can you help me with the logic for handling connection string dynamically
    aak

  • How can I enable for-each loop in Creator update 1?

    I try to use for-each loop, but I got error message from compiler is
    " for-each loops are not supported in -source 1.4. (try -source 1.5 to enable for-each loops)"
    How can I switch my source to 1.5.. I am using jdk 1.5. Confusing.
    Thanks .
    Richard

    Hi!
    Actually Sun Java Studio Creator doesn't support Java EE 5 projects. If You want to create Java EE 5 project, try to use NetBeans with Visual Web Pack installed.
    Thanks,
    Roman.

  • For-each loop in OSB

    Hi,
    I have a senario where i have a varied length XMl is coming to me in response of a service callout, and I need to iterate over it to get the fieldvalue of a particular tag based on its fieldName(e.g FUNCTION_CODE) and assign to a tag of another xml for example
    THE XML Coming as response of service callout is
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body>
    <getDefaultValueResponse xmlns="http://data.transformation.nab.cz.fc.ofss.com">
    <getDefaultValueReturn>
    <fieldDefaultValue>F</fieldDefaultValue>
    <fieldName>FUNCTION_CODE</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>PAYMENT_TRANSACTION_ID</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>CHANNEL_ID</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue>CR</fieldDefaultValue>
    <fieldName>CREDIT_DEBIT_FLAG</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>BRAND</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue>001</fieldDefaultValue>
    <fieldName>ACCOUNT_STATUS</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue>Mr</fieldDefaultValue>
    <fieldName>NAME_TITLE</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue>Y</fieldDefaultValue>
    <fieldName>MAIL_RETURN_INDICATOR</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>ENTITY</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>TRANSACTION_CURRENCY</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>VERSION</fieldName>
    </getDefaultValueReturn>
    <getDefaultValueReturn>
    <fieldDefaultValue xsi:nil="true"/>
    <fieldName>TRANSACTION_RATE</fieldName>
    </getDefaultValueReturn>
    </getDefaultValueResponse>
    </soapenv:Body>
    </soapenv:Envelope>
    and i want to assign that value to transactionType tag of
    <?xml version="1.0" encoding="UTF-8"?>
    <tns:sandstonetns xmlns:tns="http://sandstone.response.transactionHistory.app.nab.cz.fc.ofss.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sandstone.response.transactionHistory.app.nab.cz.fc.ofss.com Sandstone_Data_Transaction_History_Response.xsd ">
    <tns:listOfTransactions>
    <tns:transactions>
    <tns:clients>
    <tns:clientID>tns:clientID</tns:clientID>
    </tns:clients>
    <tns:timestamp>2001-12-31T12:00:00</tns:timestamp>
    <tns:sequenceNumber>tns:sequenceNumber</tns:sequenceNumber>
    <tns:description>tns:description</tns:description>
    <tns:amount>0</tns:amount>
    <tns:accountNumber>tns:accountNumber</tns:accountNumber>
    <tns:debitOrCreditFlag>tns:debitOrCreditFlag</tns:debitOrCreditFlag>
    <tns:*transactionType*>tns:transactionType</tns:transactionType>
    </tns:transactions>
    </tns:listOfTransactions>
    <tns:returnResponse>
    <tns:returnCode>0</tns:returnCode>
    <tns:returnDescription>tns:returnDescription</tns:returnDescription>
    </tns:returnResponse>
    </tns:sandstonetns>
    I want to achieve this using for-each loop...kindly help me as I dont have any idea about how to use for-each loop...

    i want to select a the tag fieldValue based on the data in tag fieldName for eg if i iterate over the whole response XML searching for fieldName=FUNCTION_CODE then I whuold get the value 'F' and then I would assign this value 'F' to the transactionType tag of the XML
    <?xml version="1.0" encoding="UTF-8"?>
    <tns:sandstonetns xmlns:tns="http://sandstone.response.transactionHistory.app.nab.cz.fc.ofss.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sandstone.response.transactionHistory.app.nab.cz.fc.ofss.com Sandstone_Data_Transaction_History_Response.xsd ">
    <tns:listOfTransactions>
    <tns:transactions>
    <tns:clients>
    <tns:clientID>tns:clientID</tns:clientID>
    </tns:clients>
    <tns:timestamp>2001-12-31T12:00:00</tns:timestamp>
    <tns:sequenceNumber>tns:sequenceNumber</tns:sequenceNumber>
    <tns:description>tns:description</tns:description>
    <tns:amount>0</tns:amount>
    <tns:accountNumber>tns:accountNumber</tns:accountNumber>
    <tns:debitOrCreditFlag>tns:debitOrCreditFlag</tns:debitOrCreditFlag>
    *<tns:transactionType>tns:transactionType</tns:transactionType>*
    </tns:transactions>
    </tns:listOfTransactions>
    <tns:returnResponse>
    <tns:returnCode>0</tns:returnCode>
    <tns:returnDescription>tns:returnDescription</tns:returnDescription>
    </tns:returnResponse>
    </tns:sandstonetns>

Maybe you are looking for

  • Problem with portal monitoring

    Hi, I have a question concerning portal monitoring. When I click on System Administration -> Monitoring -> Portal -> Request or Component Overview there's no data displayed. When I click on the "Display" button I get the message No request executed s

  • Expanded Sound choices? I have a 5.1 system.

    I bought a new iMac to replace a Dell. I would like to use the 5.1 Klipch sound system I used with my Dell (Creative Audigy sound card). The Creative sound card was an expansion card I purchased and put into a slot in my Dell many years ago. What are

  • Video and audio delay

    For the last few weeks, we've notice a delay on HD channels and regular channels with the audio and video on DVR shows AND live shows.  Anyone know why this is happening?  TIA

  • Printing photos from Revel

    I have photos stored in my Adobe Revel library. How do I choose photos for printing (yes, on paper), and is there a service to which the photo files are sent to be printed? Thanks.

  • The video player for sharing is too small?

    I try to share videos from fb (Facebook) and I am unable to view it when I do because the video keeps saying the video player is too small. Another thing, the windows media player is not compatible either! Why is this?!