XML merge nodes

4function

New Member
I have the following xml:\[code\]<Root> <Item> <CityCode>ALV</CityCode> <AirportCode>ALV</AirportCode> <CityName>ANDORRA LA VELLA</CityName> <AirportName>Andorra La Vella Hlpt</AirportName> <StateCode></StateCode> <CountryCode>AD</CountryCode> <AirportTypeCode>8</AirportTypeCode> <AirportTypeName>Heliport, not scheduled</AirportTypeName> </Item> </Root>\[/code\]and i need a xslt to get this:\[code\]<Root> <Item> <CityCode>ALV</CityCode> <CityName>ANDORRA LA VELLA</CityName> <CityNameComplete> ANDORRA LA VELLA (ALV) - Andorra La Vella Hlpt </CityNameComplete> <Item><Root>\[/code\]I know how to get the first 2 nodes, I don't know how to "insert" the last one.
 
Back
Top