fix code to work with api and UI, CRM-14474

----------------------------------------
* CRM-14474: Update CiviCase XML processor to load from DB *or* file
  https://issues.civicrm.org/jira/browse/CRM-14474
fix code to work with api and UI, CRM-14474

----------------------------------------
* CRM-14474: Update CiviCase XML processor to load from DB *or* file
  https://issues.civicrm.org/jira/browse/CRM-14474
Merge pull request #3388 from kurund/CRM-14474

CRM-14474