Updating an existing xml file elements with attributes and values using xmlstarlet
I want to write a script to iterate over each element “NewTempP” with attributes and child element and copy the structure to element “fig” as child element. “NewTempP” and “fig” are siblings.