replaceNodeWithChildren function

Replace an XML node with it child nodes