1 Replies - 3101 Views - Last Post: 24 September 2012 - 02:56 PM Rate Topic: -----

#1 bemjones  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 23-September 12

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

Posted 23 September 2012 - 05:20 PM

Whats wrong with my code? I keep getting "Error parsing XML: not well-formed (invalid token)" when i compile!
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">
	
	<ImageView 
    	android:id="@+id/phone_icon"
    	android:layout_width="wrap_content"
    	android:layout_height="wrap_content"
    	android:layout_gravity="center_horizontal"
    	android:src="@drawable/phone_on"
    </ImageView>
	
	<Button
	    android:id="@+id/toggleButton"
	    android:layout_width="wrap_content"
	    android:layout_height="wrap_content"
	    android:layout_gravity="center_horizontal"
	    android:text="Toggle Silent Mode"
	</Button>
	 
</LinearLayout>



Is This A Good Question/Topic? 0
  • +

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

#2 mojo666  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 356
  • View blog
  • Posts: 783
  • Joined: 27-June 09

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

Posted 24 September 2012 - 02:56 PM

You are missing ">" for both ImageView and Button.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1