Using XML Literals in Code Generation

A while back I showed a very simple way you could use XML Literals to generate code. In my previous life we used XSLT to do our code generation of different layers in our applications but as I worked with XML literals in Visual Basic 9, I came to realize quickly how much easier this is using VB.

But don’t take it from me, Kathleen Dollard is the expert in code generation and has a dnrTV episode where she shows us how she’s using XML literals and LINQ to generate not only VB code, but also C# code, all from the same template!