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

Last Updated:

  1. Lijap

    Lijap Member

    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="">
    <!-- 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" />

  2. alostpacket

    alostpacket Over Macho Grande? VIP Member

    could it be the &quot ?

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

Share This Page