Is there any XML editor for textarea
Try the XML Field module


  Defines an xml field type. Provides an XML widget using CodeMirror (beginning with version 7.x-1.6).Provides XML related API functions for working with XML code. Adds a theme_xml() theme function. Defines a form type called xmltext for use in the Forms API.


Image from project page