我有这些 xml 数据集
<Address>
<Rowinfo>
<LocatorDesignator>Dwelling (Part Of), Null</LocatorDesignator>
<LocatorName>Flat - Buena Villa House</LocatorName>
<thoroughfare>James Passage</thoroughfare>
<AddressArea>Modakeke island</AddressArea>
</Rowinfo>
<Rowinfo>
<LocatorDesignator>Flat - Buena Villa House, 1</LocatorDesignator>
<LocatorName>Flat 3a Anderson's House</LocatorName>
<thoroughfare>Abesinia Passage</thoroughfare>
<AddressArea> Buena Villa Road</AddressArea>
</Rowinfo>
<Rowinfo>
<LocatorDesignator>Offices Unit 2a Funlife Building, 02a</LocatorDesignator>
<LocatorName>Offices Unit 2a Funlife Building <LocatorName>
<thoroughfare> Modakeke island</thoroughfare>
<AddressArea>Laguna Estate</AddressArea>
</Rowinfo>
</Address>
我想把它们变成这个
<LocatorDesignator>Dwelling(Part Of)</LocatorDesignator>
<LocatorName>Buena Villa House</LocatorName>
<thoroughfare>James Passage </thoroughfare>
<AddressArea>Modakeke island</AddressArea>
<LocatorDesignator>Flat 1</LocatorDesignator>
<LocatorName> Anderson's House</LocatorName>
<thoroughfare>Abesinia Passage</thoroughfare>
<AddressArea> </AddressArea>
<LocatorDesignator>Offices Unit 2a</LocatorDesignator>
<LocatorName> Funlife Building <LocatorName>
<thoroughfare> </thoroughfare>
<AddressArea>Laguna Estate</AddressArea>
基本上在(addressarea)元素中,我想提取以房地产和岛屿为后缀的值。在通道元素中,我想删除以庄园和岛屿为后缀的值。在定位器名称中提取任何带有房屋或建筑物的值。