Xml stored in database is not valid