Android / Eclipse / Premature end of xml file Android / Eclipse / Premature end of xml file xml xml

Android / Eclipse / Premature end of xml file


And I solved it. Man, what a goofy thing to have confound me for two days! I cleaned the project, rebuilt the xml file, and it works fine. I have no idea what was plugging things up as I had never actually tried to run the project so there should not have been an issue with out.out, but it worked. Thanks to all who offered advice. I truly do appreciate your time and attention in helping me with this one.


You might look at this answer.

That person's problem was that the file was not created as an XML file, from Eclipse's point of view. Try File > New > Other... / select XML.


Try

<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"><item android:state_selected="true"        android:drawable="@drawable/dategrey" />    <item android:drawable="@drawable/datewhite" /></selector>

You need to check the state first then call the specific drawable.