[SOLVED] Connect a materials with mesh forever

How connect/joint a materials and mesh forever, if you create a new level, load the models with textures ready ?

Materials stored in xml-file. Materials paths for every submesh stored in one txt file. AssetImporter.exe can create this file automatically if -l paramerer passed.

Thanks.