I have some data in a file which looks like this.
<Attribute name='mname' type='string' value='X.'/>
<Attribute name='ssn id' type='string' value='111111111'/>
<Attribute name='org' type='string' value='Top:XXXXXX:NAM:TBD'/>
<Attribute name='origin' type='string' value='XXXX'/>
<Attribute name='sDate' type='string' value='02/19/2005'/>
The above data is from one record.
I need to read the data in this file and find the 'ssn id' Then I need to change the value of 'ssn id' (111111111 in the above record) to some other number(e.g., a random 9 digit number or some default 9 digit number for all the records in the file).
This needs to happen throughout the file for all the records.
How do I achieve this?
Thanks,
Pramod
<Attribute name='mname' type='string' value='X.'/>
<Attribute name='ssn id' type='string' value='111111111'/>
<Attribute name='org' type='string' value='Top:XXXXXX:NAM:TBD'/>
<Attribute name='origin' type='string' value='XXXX'/>
<Attribute name='sDate' type='string' value='02/19/2005'/>
The above data is from one record.
I need to read the data in this file and find the 'ssn id' Then I need to change the value of 'ssn id' (111111111 in the above record) to some other number(e.g., a random 9 digit number or some default 9 digit number for all the records in the file).
This needs to happen throughout the file for all the records.
How do I achieve this?
Thanks,
Pramod