I am trying to modify a value in a text file template with a value from a database table without hard coding the relationship between the template field and the database field. I want to use an XML file to hold the names of the placeholders and database field names.
Placeholders look like: [somefieldname]
database fields look like: "databasefieldname"
XML looks like:
<placeholder>[somefieldname]</placeholder>
<dbfieldname>databasefieldname</dbfieldname>
Template looks like:
a,b,d,[somefieldname],y,n,1,2, etc...
Is this a crazy thought or is it actually feasible?