The following shell script errors out while loading:
cat XDOLoad.sh
#!/usr/bin/ksh
%s_contextfile%
%s_adjvaprg% oracle.apps.xdo.oa.util.XDOLoader UPLOAD -DB_USERNAME %s_apps_user% -DB_PASSWORD ${1} -JDBC_CONNECTION %s_dbhost%.xyz:%s_dbport%:%s_db_serv_sid% -LOB_TYPE DATA_TEMPLATE -APPS_SHORT_NAME XX -LOB_CODE XX_SUBACC -LANGUAGE en -TERRITORY US -XDO_FILE_TYPE XML -NLS_LANG AMERICAN -FILE_CONTENT_TYPE 'text/html' -FILE_NAME %c_xxcno_top%/patch/115/publisher/defs/XX.xml -OWNER ORACLE -CUSTOM_MODE FORCE
exit 0
$ ./XDOLoad.sh apps
./XDOLoad.sh[3]: %s_contextfile%: not found
./XDOLoad.sh[5]: %s_adjvaprg%: not found
There is no off-the-shelf generic method to parse a xml file in unix Shell script, but sometimes is is possible with brute force.
Can you post a sample, blotting any confidential data values with X's ?
I would expect there be some process, that processes the xml and the script and that replaces the %...% variables with actual values, thus producing a resulting script, that conforms to ksh syntax and that can be executed using ksh. What that process entails, I could not tell you...