Or, if you want to source environment, you could do something like:
<environment> <file mime-type='text/plain'> /etc/sysconfig/whatever </file> <file mime-type='text/xml'> /etc/sysconfig/morestuff.xml </file> </environment>
I think his question was what to put in a shell script that would be able to source an XML file into the shell's variables and environment. Currently most initscript sysconfig files are just bash scriptlets that assign shell variables and are easily parsed with the bash dot (source) operator.