Added the minidom insertion