Thulasiram pakala

Thulasiram pakala

  • 907
  • 872
  • 115.2k

i have xml armate like this

Jun 29 2021 11:58 AM

i havig this type of xml and i have one more xml string this string i want to add  under pending status tag <PendingStatus>Time over waiting for result</PendingStatus>


           thuis is string

<requestcolumn>
            <Column>edist_name</Column>
            <Column>TalukName</Column>
            <Column>hobli_name</Column>
            <Column>village_name</Column>
            <Column>FarmerRegNo</Column>
            <Column>Name</Column>

</requestcolumn>

<requestcolumn>
            <Column>edist_name</Column>
            <Column>TalukName</Column>
         
            <Column>FarmerRegNo</Column>
            <Column>Name</Column>

</requestcolumn>

this string i want add pending status in for loop

 

 

<PendingRequestConsentTag>
    <PendingRequestConsent>
        <DPQO_QueryID>QR008</DPQO_QueryID>
        <DSR_SeekerID>DS001</DSR_SeekerID>
        <DPQO_DataPrincipalID>FID0101000000243</DPQO_DataPrincipalID>
        <FD_FiduciaryID>FM001</FD_FiduciaryID>
        <DPQO_QueryResultReceivedOn>2021-05-31T17:26:11.373+05:30</DPQO_QueryResultReceivedOn>
        <DSR_Purpose>Testing </DSR_Purpose>
        <DSR_AddedOn>2021-05-31T17:02:30.07+05:30</DSR_AddedOn>
        <daysleft>-10</daysleft>
        <PendingStatus>Time over waiting for result</PendingStatus>

     
    </PendingRequestConsent>
    <PendingRequestConsent>
        <DPQO_QueryID>QR008</DPQO_QueryID>
        <DSR_SeekerID>DS001</DSR_SeekerID>
        <DPQO_DataPrincipalID>FID0101000000243</DPQO_DataPrincipalID>
        <FD_FiduciaryID>FM001</FD_FiduciaryID>
        <DPQO_QueryResultReceivedOn>2021-05-31T17:26:11.373+05:30</DPQO_QueryResultReceivedOn>
        <DSR_Purpose>Testing </DSR_Purpose>
        <DSR_AddedOn>2021-05-31T17:02:30.07+05:30</DSR_AddedOn>
        <daysleft>-10</daysleft>
        <PendingStatus>Time over waiting for result</PendingStatus>

       
    </PendingRequestConsent>    
</PendingRequestConsentTag>

 

want like this formate

<PendingRequestConsentTag>
    <PendingRequestConsent>
        <DPQO_QueryID>QR008</DPQO_QueryID>
        <DSR_SeekerID>DS001</DSR_SeekerID>
        <DPQO_DataPrincipalID>FID0101000000243</DPQO_DataPrincipalID>
        <FD_FiduciaryID>FM001</FD_FiduciaryID>
        <DPQO_QueryResultReceivedOn>2021-05-31T17:26:11.373+05:30</DPQO_QueryResultReceivedOn>
        <DSR_Purpose>Testing </DSR_Purpose>
        <DSR_AddedOn>2021-05-31T17:02:30.07+05:30</DSR_AddedOn>
        <daysleft>-10</daysleft>
        <PendingStatus>Time over waiting for result</PendingStatus>

 

        <requestcolumn>
            <Column>edist_name</Column>
            <Column>TalukName</Column>
            <Column>hobli_name</Column>
            <Column>village_name</Column>
            <Column>FarmerRegNo</Column>
            <Column>Name</Column>
            <Column>Age</Column>
        </requestcolumn>  
    </PendingRequestConsent>
    <PendingRequestConsent>
        <DPQO_QueryID>QR008</DPQO_QueryID>
        <DSR_SeekerID>DS001</DSR_SeekerID>
        <DPQO_DataPrincipalID>FID0101000000243</DPQO_DataPrincipalID>
        <FD_FiduciaryID>FM001</FD_FiduciaryID>
        <DPQO_QueryResultReceivedOn>2021-05-31T17:26:11.373+05:30</DPQO_QueryResultReceivedOn>
        <DSR_Purpose>Testing </DSR_Purpose>
        <DSR_AddedOn>2021-05-31T17:02:30.07+05:30</DSR_AddedOn>
        <daysleft>-10</daysleft>
        <PendingStatus>Time over waiting for result</PendingStatus>

        <requestcolumn>
            <Column>edist_name</Column>
            <Column>TalukName</Column>
           <Column>FarmerRegNo</Column>
            <Column>Name</Column>
            <Column>Gender</Column>
        </requestcolumn>         
    </PendingRequestConsent>    
</PendingRequestConsentTag>