lib/site-requests.js
function processXML(name, uri, processor, resp, callback) {
  var parser = new xml2js.Parser();

  parser.parseString(resp, function (err, xml) {
    if (err) {
      GLOBAL.error(name, err);
      return;
    } else {
      processor.getAnnotations(name, uri, xml, function(err, annoRows) {
        callback(err, {name: name, uri: uri, annoRows: annoRows});
      });
    }
  });
}
function processXML(name, uri, processor, resp, callback) {
  var parser = new xml2js.Parser();

  parser.parseString(resp, function (err, xml) {
    if (err) {
      GLOBAL.error(name, err);
      return;
    } else {
      processor.getAnnotations(name, uri, xml, function(err, annoRows) {
        callback(err, {name: name, uri: uri, annoRows: annoRows});
      });
    }
  });
}
function processXML ( name , uri , processor , resp , callback ) { var parser = new xml2js . Parser ( ) ; parser . parseString ( resp , function ( err , xml ) { if ( err ) { GLOBAL . error ( name , err ) ; return ; } else { processor . getAnnotations ( name , uri , xml , function ( err , annoRows ) { callback ( err , { name : name , uri : uri , annoRows : annoRows } ) ; } ) ; } } ) ; }
process retrieved content as XML
process retrieved content as XML