title: How do I fill a ListView (in Android) with XML or JSON data?
body: <p>I read a tutorial, and it uses SQLlite and "SimpleCursorAdapter" to fill the list with items.
  This is the code the tutorial taught me.</p>
  
  <pre><code>private void fillData() {
          // Get all of the notes from the database and create the item list
          Cursor c = mDbHelper.fetchAllNotes();
          startManagingCursor(c);
  
          String[] from = new String[] { NotesDbAdapter.KEY_TITLE };
          int[] to = new int[] { R.id.text1 };
  
          // Now create an array adapter and set it to display using our row
          SimpleCursorAdapter notes =
              new SimpleCursorAdapter(this, R.layout.notes_row, c, from, to);
          setListAdapter(notes);
      }
  </code></pre>
  
  <p>However...what if I want to fill it with XML data? Is it the same method? Can someone give me an example (in code)? thanks.</p>