I have this XML:
public var translations:XML =
<translations>
<firstName>
<en>first name</en>
<fr>prénom</fr>
</firstName>
<lastName>
<en>last name</en>
<fr>nom de famille</fr>
</lastName>
</translations>
I would like to reduce it to the below:
<translations>
<firstName>first name</firstName>
<lastName>last name</lastName>
</translations>
In the above I have removed the en
& fr
nodes, I have consolidated the string from en
into their place. I know I'm able to do this with a for loop but I'd prefer an E4X query if possible.