I have to create XML files with complicated structure dynamically in .NET 4 windows service application. XML files are rather big though I have to update only small amount of tags or sections. I'd like to put XML template outside application with snippets that will insert values inside XML (like @razor engine for ASP.NET MVC Views)
<xml>
<customer>@data.customer</customer>
@foreach (var supplier in @data.suppliers) {
<supplier>@supplier</supplier>
}
...
</xml>
What is appropriate technology/library for that ?