我需要合并两个xml文件。 文件1
<Key ID="STR_Config_Gear_ApexBanditVal">
<French>APEX Bandit %1</French>
<Italian>Apex bandito %1</Italian>
<Polish></Polish>
<English></English>
<Spanish>APEX Bandit %1</Spanish>
</Key>
<Key ID="STR_Config_Gear_ApexCasualVal">
<French>APEX Casual %1</French>
<Italian>Apex informale %1</Italian>
<Polish></Polish>
<English></English>
<Spanish>APEX casual %1</Spanish>
</Key>
<Key ID="STR_Config_Gear_ApexSportVal">
<French>APEX Sport %1</French>
<Italian>Apex sport %1</Italian>
<Polish></Polish>
<English></English>
<Spanish>APEX deportivo %1</Spanish>
</Key>
文件2
<Key ID="STR_Config_Gear_ApexBanditVal">
<English>APEX Bandit %1</English>
</Key>
<Key ID="STR_Config_Gear_ApexCasualVal">
<English>APEX Casual %1</English>
</Key>
<Key ID="STR_Config_Gear_ApexSportVal">
<English>APEX Sport %1</English>
</Key>
我需要将文件2中的英语标签合并到文件1中,但是仅当两个文件中都存在密钥ID时,因为文件1包含的密钥ID比文件2多。
有人知道如何实现吗?