Put into correct xml format