<include>myfile.xml</include>
It should work as if the file was pasted into the location of the include directive
I did this myself in a couple of xml languages/projects. You need some kind of stack of old xml contexts and just make a new context with the new file.
Its perfect for many things. Got a standard camera angle? Just make a file and include it. Wanna make all those SWEET default primitives once and for all? Just include the mesh
Code: Select all
<include>coolmesh.xml</include>
<model>
<pos>0 0 0</pos>
<scale>1.0</scale>
<mesh_name>coolmesh</mesh_name>>
</model>
This would be even more powerful with a concept of "current setting" or a stackbased context that would allow constructions like this
Code: Select all
<include>mysweetmaterial.xml</include>
<material>mysweetmaterial</material>
<include>coolmesh.xml</include>
<model>
<pos>0 0 0</pos>
<scale>1.0</scale>
<mesh_name>coolmesh</mesh_name>>
</model>