code: function determineJSON(xml) {
  	var json = null;
  	parseString(xml, function(err, result) {
  		if (err) {
  			// TODO
  			console.log(err);
  		} else {
  			json = result;
  		}
  	});
  	return json;
  }
docs: It determines the JSON object from XML.
  
  @param xml
  {string} GetCapabilities document as XML.
  @returns {object} GetCapabilities document as JSON.