message to xml file  works