Merge successive descendant nodes into one
问题 XML: <t> <ScreenSize> <Width>1440</Width> <Height>900</Height> </ScreenSize> <ConfigurationHotSpots> <Rectangle> <Location> <X>0</X> <Y>0</Y> </Location> <Size> <Width>50</Width> <Height>50</Height> </Size> <X>0</X> <Y>0</Y> <Width>50</Width> <Height>50</Height> </Rectangle> </ConfigurationHotSpots> </t> Desired Output XML: <t> <ScreenSizeWidth>1440</ScreenSizeWidth> <ScreenSizeWidth>900</ScreenSizeWidth> <ConfigurationHotSpotsRectangleLocationX>0</ConfigurationHotSpotsRectangleLocationX>