My fault...I didn't present a good example
anyways..here is a sample file:
> cat file
<tagptype>CC<tagptype>
<tagpdescr>International<tagpdescr>
<tagpnum> <tagpnum>
<tagptype>CC<tagptype>
<tagpdescr>local<tagpdescr>
<tagpnum>13.78<tagpnum>
Here's the supposed output:
<tagptype>CC<tagptype>
<tagpdescr>International<tagpdescr>
<tagXXXX> <tagXXXX>
<tagptype>CC<tagptype>
<tagpdescr>local<tagpdescr>
<tagpnum>13.78<tagpnum>