XML to drive very generic queries

So I had the idea for a project that the easiest way to get some customization into a dB driven system is to use XML – but that would require an engine being built in some platform. Most of the horsepower for his part of the project is in SQL server. So I went surfing. Here is an article by a sheer genius Wayne Ackman who is doing what I require -> XML to SQL statements being executed.

The only thing I have to do is to ensure that primary key can be overridden in a very generic way for an update. Other than that it is perfect.