Thanks. I found your code helpful. What I'm looking for is kind of like taking the code in the codebox from this example:
and storing that in a database, and then implementing it at runtime.
I found a very useful set of code here:
About the only drawback of it is that you have to do your import statements in your code to interpret.
Next step, import statements from XML
If you can know the set of classes to choose from beforehand, then import
statements and/or the class map in my example are the way to go. If you
don't want to know, then look into using modules and having the modules
implement some manifest of what classes they contain.