append xml training model in attachment