2012-01-10 36 views
0

我有一些C++的經驗,但現在我開始在eclipse中爲java的java。 我正在瀏覽eclipse的教程,並遇到問題。我收到以下錯誤:解析XML時出錯:格式不正確(無效標記)

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent"> 


<TextView <== HERE I GET THE error: Error parsing XML: not well-formed (invalid token) 
    android:id="@+id/label" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="Type here:"> 
<EditText 
    android:id="@+id/entry" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:background="@android:drawable/editbox_background" 
    android:layout_below="@id/label"> 
<Button 
    android:id="@+id/ok" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_below="@id/entry" 
    android:layout_alignParentRight="true" 
    android:layout_marginLeft="10dip" 
    android:text="OK"> 
<Button 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_toLeftOf="@id/ok" 
    android:layout_alignTop="@id/ok" 
    android:text="Cancel"> 

我不知道我的代碼的問題,請大家幫忙

謝謝

回答

2

結束標記缺少的元素。

相關問題