function parseXml(body) {
    var parsed;
    var parser = new xml2js.Parser(xml2jsSettings);
    parser.parseString(azureutil.removeBOM(body.toString()), function (err, parsedBody) {
      if (err) {
        var xmlError = new SyntaxError('EXMLFORMAT');
        xmlError.innerError = err;
        throw xmlError;
      } else { parsed = parsedBody; }
    });

    return parsed;
  }
Parses a server response body from XML or JSON into a JS object.
This is done using the xml2js library.
@ignore

@param {object}     response                   The response object with a property "body" with a XML or JSON string content.
@param {object}     xml2jsSettings             The XML to json settings.
@param {Options}    options                    The response parsing options.
@param {String}     options.payloadFormat      The payload format.
@return {object} The same response object with the body part as a JS object instead of a XML or JSON string.