2012-01-10 56 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

结束标记缺少的元素。

相关问题