Hi Ygor
It almost done. But my file actually is
<CODE="KC_FOU">
<TAG>KC_FOU</TAG>
<CODE="KC_FABC">
<TAG>KC_FABC</TAG>
<CODE="KC_FABCDG">
<TAG>KC_FABCDG</TAG>
you command cut the <CODE="KC_FABCDG"> become <CODE="KC_F
sorry , I am not a programmer. may be I don't know how to ask in correct way.
what if I want to keep <CODE......> line unchanged. only <TAG>.... is replaced.
the output become
<CODE="KC_FOU">
<TAG>KC_F</TAG>
<CODE="KC_FABC">
<TAG>KC_F</TAG>
<CODE="KC_FABCDG">
<TAG>KC_F</TAG>
Thx