title: How to parse RSS xml feed using Retrofit lib
body: <p>I am trying to parse an XML feed with Retrofit API but I was blocked, I don't know how to access those attributes I think the problem is the Root RSS!</p>
  <p>This is the feed : <a href="http://www.ka-news.de/storage/rss/rss/karlsruhe.xml" rel="nofollow noreferrer">http://www.ka-news.de/storage/rss/rss/karlsruhe.xml</a></p>
  <p>The main activity is where I will pass the data (list of items) to the adapter.</p>
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
          Bundle savedInstanceState) {
      // TODO Auto-generated method stub      
      View rootView = inflater.inflate(R.layout.fragment_main, container, false);
  
      RestAdapter restAdapter = new RestAdapter.Builder()
              .setEndpoint(&quot;http://www.ka-news.de&quot;)
              .setConverter(new SimpleXmlConverter())
              .setLogLevel(RestAdapter.LogLevel.FULL)
              .build();
  
      api apiService = restAdapter.create(api.class);
      Rss rss = apiService.getRss();
      List&lt;Item&gt; items = rss.getChannel().getItemList();
      // Obtener el Recycler
      recycler = (RecyclerView) rootView.findViewById(R.id.reciclador);
      recycler.setHasFixedSize(true);
  
      // Usar un administrador para LinearLayout
      lManager = new LinearLayoutManager(getContext());
      recycler.setLayoutManager(lManager);
  
      // Crear un nuevo adaptador
      adapter = new AnimeAdapter(items);
      recycler.setAdapter(adapter);
  
  
      rootView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT ));       
      return rootView;        
  }
  </code></pre>
  <p>api interface :</p>
  <pre><code>public interface api {
  @GET(&quot;/storage/rss/rss/karlsruhe.xml&quot;)
  public Rss getRss();
  }
  </code></pre>
  <p>I have created three entities :</p>
  <p>Channel :</p>
  <pre><code>@Root(strict = false)
  public class Channel {
      @ElementList(name = &quot;item&quot;, required = true, inline = true)
      public List&lt;Item&gt; itemList;
  
  public List&lt;Item&gt; getItemList() {
      return itemList;
  }
  
  public void setItemList(List&lt;Item&gt; itemList) {
      this.itemList = itemList;
  }
  </code></pre>
  <p>}</p>
  <p>Item:</p>
  <pre><code>@Root(name = &quot;item&quot;, strict = false)
  public  class Item {
  @Element(name = &quot;title&quot;, required = true)
  String title;
  @Element(name = &quot;link&quot;, required = true)
  String link;
  @Element(name = &quot;description&quot;, required = true)
  String description;
  @Element(name = &quot;pubDate&quot;, required = false)
  String pubDate;
  
  
  public String getTitle() {
      return title;
  }
  
  public void setTitle(String title) {
      this.title = title;
  }
  
  public String getLink() {
      return link;
  }
  
  public void setLink(String link) {
      this.link = link;
  }
  
  public String getDescription() {
      return description;
  }
  
  public void setDescription(String description) {
      this.description = description;
  }
  
  public String getPubDate() {
      return pubDate;
  }
  
  public void setPubDate(String pubDate) {
      this.pubDate = pubDate;
  }
  
  @Override
  public String toString() {
      return &quot;Item{&quot; +
              &quot;title='&quot; + title + '\'' +
              &quot;, link='&quot; + link + '\'' +
              &quot;, description='&quot; + description + '\'' +
              &quot;, pubDate='&quot; + pubDate + '\'' +
              '}';
  }
  </code></pre>
  <p>}</p>
  <p>Rss:</p>
  <pre><code>@Root
  public class Rss {
  
  @Attribute
  String version;
  
  @Element
  Channel channel;
  
  
  public Channel getChannel() {
      return channel;
  }
  
  public String getVersion() {
      return version;
  }
  
  public void setVersion(String version) {
      this.version = version;
  }
  
  public void setChannel(Channel channel) {
      this.channel = channel;
  }
  
  @Override
  public String toString() {
      return &quot;RSS{&quot; +
              &quot;version='&quot; + version + '\'' +
              &quot;, channel=&quot; + channel +
              '}';
  }
  </code></pre>
  <p>}</p>
  <p>the problem showing in log is :</p>
  <pre><code>FATAL EXCEPTION: main
  retrofit.RetrofitError
  at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:394)
  at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:240)
  at $Proxy1.getRss(Native Method)
  at br.liveo.ndrawer.ui.fragment.MainFragment.onCreateView(MainFragment.java:109)
  </code></pre>
  <p>this line :</p>
  <pre><code>Rss rss = apiService.getRss();
  </code></pre>