XML: content is not allowed in trailing section

Posted by Capsud on Stack Overflow See other posts from Stack Overflow or by Capsud
Published on 2010-05-31T23:48:20Z Indexed on 2010/06/01 0:23 UTC
Read the original article Hit count: 734

Filed under:

I'm getting these errors

Multiple annotations found at this line:
    - error: Error parsing XML: not well-formed 
     (invalid token)
    - Content is not allowed in trailing section.

on this XML file...

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item 
    android:state_enabled="false"
        android:drawable="@drawable/btn_red" />
    <item 
        android:state_pressed="true" 
        android:state_enabled="true"
        android:drawable="@drawable/btn_orange" />
    <item 
        android:state_focused="true" 
        android:state_enabled="true"
        android:drawable="@drawable/btn_orange" />
    <item 
        android:state_enabled="true"
        android:drawable="@drawable/btn_black" />
</selector>

Probably quite simple for you people who know XML. Any idea?

© Stack Overflow or respective owner

Related posts about Xml