XML Transformation - One Format to Another

Hey All,

Trying to play with XMLs these days, Wanted to convert XML from one format to another.
For example

The old Format is like this

<Shape Name="Rect618" Category="Shape">
		<BackgroundColor Type="Color" Red="255" Green="255" Blue="255" RawValue="#FFFFFFFF"/>

The new Format is like this

<Rectangle Name="Rect618">

Currently, we are doing simple XSL Transformation, but wanted to check if it can be done via a Transformer model.
I already have datasets ready with the before and new format, and wanted to see if I can train a model based on this data. so can someone point me in the right direction, if this can be done?