Resource files from sql server

Well if you wanted to create your resource file from a sql server database try this

select 1 as tag ,null as parent,
    id  as [data!1!name],
    value as [data!1!value!element]
from MyTable 
    order by (2)
for xml explicit