Android xml文件中存在错误

Android xml文件中存在错误,android,Android,我正在准备我的android应用程序,我想在其中创建两行。它在第二行表中显示此错误。但我不明白,如何解决此错误。 错误是“根元素后面的文档中的标记必须格式正确。”它出现在第二个表行中 <?xml version="1.0" encoding="utf-8"?> <TableRow xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" and

我正在准备我的android应用程序,我想在其中创建两行。它在第二行表中显示此错误。但我不明白,如何解决此错误。
错误是“根元素后面的文档中的标记必须格式正确。”它出现在第二个表行中

<?xml version="1.0" encoding="utf-8"?>

<TableRow
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
    android:id="@+id/tableRow1">

    <!-- Screen Design for the SONGS -->
<ViewFlipper android:id="@+id/viewFlipper1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content" >
  </ViewFlipper>

</TableRow>

<TableRow
    xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
    android:id="@+id/tableRow2"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" >

</TableRow>


如果这是整个XML文件,它缺少一个“根”元素,因此不是格式良好的XML

根元素后面的文档中的标记必须格式良好。它将在第二行出现,您必须将这两个标志包装在某个外部包含的包装器中。顶层只能有一个元素我假设XML被构造为某种描述的配置信息?您需要查看文档并确定正确的根元素是什么is@ChrisDrappier我是android世界的新手,你能简单地解释一下吗?这不是android的问题。这是一个xml的东西。请在此处阅读更多信息: