error: Error parsing XML: not well-formed (invalid token)


Last Updated:

  1. Lijap

    Lijap Member This Topic's Starter

    Joined:
    Jun 16, 2011
    Messages:
    15
    Likes Received:
    0
    I cant seem to figure out this problem, in two of my xml files(this is one, the other is very similar and has the exact same problem) the line that says android:state_selected="true" /> has the error that is in the title. The true" is doesn't have the blue color to it like it should. Because of this I have no Auto generated file which is messing up the rest of my application. Does anyone know how to solve this? Be warned I am new to android development.





    <?xml version="1.0" encoding="utf-8"?>
    <selector xmlns:android="http://schemas.android.com/apk/res/android">
    <!-- When selected, use this -->
    <item android:drawable="@drawable/tab_two_icon&quot;
    android:state_selected="true" />
    <!-- When not selected, use that-->
    <item android:drawable="@drawable/tab_two_iconfaded" />
    </selector>
     

    Advertisement
  2. alostpacket

    alostpacket Over Macho Grande? VIP Member

    Joined:
    Nov 29, 2009
    Messages:
    7,978
    Likes Received:
    3,603
    could it be the &quot ?

    I usually get that error when i have an ampersand somewhere -> &
     

Share This Page

Loading...