title: com.thoughtworks.xstream.mapper.CannotResolveClassException in android
body: <p>I m Parsing xml into java model. While parsing the xml into java Object I m getting the com.thoughtworks.xstream.mapper.CannotResolveClassException Exception. here is my code. 
  i m getting xml from the http response. and i want to convert it into java model</p>
  
  <pre><code>public class GetCarAsynTask extends AsyncTask&lt;Void,Void,HttpResponse&gt; {
  
      private Context mContext;
      private String mApiID;
      private String mApikey;
      private List&lt;Car&gt; list;
      public GetCarAsynTask(Context context, String apiID, String apikey) {
          mContext = context;
          mApiID = apiID;
          mApikey = apikey;
      }
      @Override
      protected HttpResponse doInBackground(Void... params) {
  
          HttpResponse httpResponse = null;
          try {
              String xmlData = XmlConverter.convertStreamToString(mContext.getAssets().open(ConstantsUtils.GET_CAR_FILE_NAME));
              xmlData = String.format(xmlData, mApiID, mApikey);
              httpResponse = WebServiceUtils.getCar(xmlData);
              list = getCar(httpResponse);
          } catch (IOException e) {
              e.printStackTrace();
          } catch (Exception e) {
              e.printStackTrace();
          }
          return httpResponse;
      }
  
      private List&lt;Car&gt; getCar(HttpResponse  response) {
          List&lt;Car&gt;  list;
          try {
              if (response != null) {
                  HttpEntity entity = response.getEntity();
                  if (entity != null) {
                      InputStream is = entity.getContent();
                      XStream xstream = new XStream();
                      xstream.alias("Car", Car.class);
                      xstream.setClassLoader(Car.class.getClassLoader());
                      list = (List&lt;Car&gt;) xstream.fromXML(is);
                      //list = XmlPullParserHandler.getInstance().parse(is);
                      return list;
                  }
              }
          } catch (Exception e) {
              Log.i("car", "error");
          }
          return null;
      }
  }
  </code></pre>
  
  <p>here is a xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope&gt;
      &lt;soap:Body&gt;
          &lt;GetCarsResponse&gt;
              &lt;GetCarsResult&gt;
                  &lt;ResponseCode&gt;0&lt;/ResponseCode&gt;
                  &lt;ResponseText&gt;OK&lt;/ResponseText&gt;
                  &lt;Cars&gt;
                      &lt;Car&gt;
                          &lt;CarId&gt;18&lt;/CarId&gt;
                          &lt;CarCode&gt;NHO 314&lt;/CarCode&gt;
                          &lt;CarName&gt;paddy&lt;/CarName&gt;
                          &lt;CarType&gt;8 PAX LIMO&lt;/CarType&gt;
                      &lt;/Car&gt;
                      &lt;Car&gt;
                          &lt;CarId&gt;19&lt;/CarId&gt;
                          &lt;CarCode&gt;NHO 352&lt;/CarCode&gt;
                          &lt;CarName /&gt;
                          &lt;CarType&gt;8 PAX LIMO&lt;/CarType&gt;
                      &lt;/Car&gt;
                      &lt;Car&gt;
                          &lt;CarId&gt;20&lt;/CarId&gt;
                          &lt;CarCode&gt;NHO 382&lt;/CarCode&gt;
                          &lt;CarType&gt;A CLASS&lt;/CarType&gt;
                      &lt;/Car&gt;
                      &lt;Car&gt;
                          &lt;CarId&gt;21&lt;/CarId&gt;
                          &lt;CarCode&gt;NHO 417&lt;/CarCode&gt;
                          &lt;CarName /&gt;
                          &lt;CarType&gt;8 PAX LIMO&lt;/CarType&gt;
                      &lt;/Car&gt;
                  &lt;/Cars&gt;
              &lt;/GetCarsResult&gt;
          &lt;/GetCarsResponse&gt;
      &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>