Remove text between tags

Nov 16, 2010 at 11:51 PM

Hi All,

I am a complete newbie to working with XML/TMX files.

I have a TMX file which contains translations for 6 languages, thousands of body entries per language.

I need to remove 4 of those languages so that there is only 2 languages in the TMX file.

Each language has a tag such as:

<tuv xml:lang="EN">
        <seg>RESOLUTION 55/100</seg>
      <tuv xml:lang="AR">
        <seg>القرار 55/100</seg>
      <tuv xml:lang="ZH">
      <tuv xml:lang="FR">
        <seg>RÉSOLUTION 55/100</seg>
      <tuv xml:lang="RU">
        <seg>РЕЗОЛЮЦИЯ 55/100</seg>
      <tuv xml:lang="ES">
        <seg>RESOLUCIÓN 55/100</seg>

There are thousands of these types of entries.

I would like to remove the RU, FR, ZH and AR entries and be left with only the EN and ES.

How would I go about doing this.

Thanks for your help.

Cheers, Dan