var parseHistory = function (history) {
     history = history || {};
     if (!history.content) {
         log.warn('Attempt to parse a history resource which does not have content');
         return {};
     }
     var xmlHistoryContent = new XML(history.content);
     var historyContent = utils.xml.convertE4XtoJSON(xmlHistoryContent) || {};
     return historyContent;
 };
Example #2
0
 var parseLifeycle = function(content) {
     var ref = require('utils').xml;
     var obj = ref.convertE4XtoJSON(createXml(content));
     return obj;
 };