def parse_xml(response)
      data = Nokogiri::XML(response) do |config| config.strict.noblanks end
      fail OptaSD::Error.new(xml_error_to_hast(data)), ErrorMessage.get_message(data.children.first.content.to_i) if data.css('errorCode').first.present?
      data
    end
def parse_xml(response)
      data = Nokogiri::XML(response) do |config| config.strict.noblanks end
      fail OptaSD::Error.new(xml_error_to_hast(data)), ErrorMessage.get_message(data.children.first.content.to_i) if data.css('errorCode').first.present?
      data
    end
Parse XML Response