I cannot do it :( . configXml should go into tizen`s config.xml as is. It is much more then list of permissions.  It also may contain list of "trusted" domains as <access> node and <preference> nodes for applications specific tizen data.
Also there can be   <tizen:setting> nodes, and  poorly documented nodes for application control: <tizen:app-control>. We cannot generate  all these on the fly. Developers needs ability to specify these nodes manually.