title: Android / Eclipse / Premature end of xml file
body: <p>Let me start by acknowledging that I did find a similar question on here but there was only one answer and that answer did not apply in my situation, so...</p>
  
  <p>I am just now wading into Android and have come upon a sticking point.  I am using Eclipse and have run into a problem trying to create a state-list drawable and keep getting a "premature end of file" error in Eclipse.  I have the images in my "drawable" directory.  I create a new file, name it date.xml, and type the following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:drawable="@drawable/dategrey" android:state_selected="true" /&gt;
      &lt;item android:drawable="@drawable/datewhite" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>The exact error that I am getting is "Premature end of file.  Error parsing XML: No elements found.".  The has me confused as there is clearly an element in there.  What am I missing?</p>