title: How to read data from xml file, and add entries into ArrayList
body: <p>I have ArrayList with books in my android app, and I add 100 items in MainActivity as below:</p>
  
  <pre><code>a = new Book("J. K. Roaling", "Harry Potter", R.drawable.book_cover1);
  bookList.add(a);
  </code></pre>
  
  <p>But I do not like the fact that because of this in MainActivity.java, there are a lot of lines. I would like to move all the lines to an XML file. But I do not know how to implement the xml file itself and read data from it.</p>