Extract xml tag value using awk command

kogoranat

New Member
I have a xml like below\[code\]<root> <FIToFICstmrDrctDbt> <GrpHdr> <MsgId>A</MsgId> <CreDtTm>2001-12-17T09:30:47</CreDtTm> <NbOfTxs>0</NbOfTxs> <TtlIntrBkSttlmAmt Ccy="EUR">0.0</TtlIntrBkSttlmAmt> <IntrBkSttlmDt>1967-08-13</IntrBkSttlmDt> <SttlmInf> <SttlmMtd>CLRG</SttlmMtd> <ClrSys> <Prtry>xx</Prtry> </ClrSys> </SttlmInf> <InstgAgt> <FinInstnId> <BIC>AAAAAAAAAAA</BIC> </FinInstnId> </InstgAgt> </GrpHdr> </FIToFICstmrDrctDbt></root>\[/code\]I need to extract the value of each tag value in separate variables using awk command. how to do it?
 
Back
Top