Исправление: кажется, что за корневым элементом может следовать комментарий: <! - что-то ->

ал работать над некоторыми учебными демоверсиями для Android снизу ссылка модуль 6.1 Проектhttp://www.vogella.de/articles/Android/article.html

Получаю следующее уведомление об ошибке в eclipse для тега menu ниже menu.xml:

The markup in the document following the root element must be well-formed.

menu.xml (путь: / res / menu)

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <Button android:id="@+id/Button01" android:layout_width="wrap_content"
        android:layout_height="wrap_content" android:text="Show Preferences"></Button>
    <Button android:id="@+id/Button02" android:layout_width="wrap_content"
        android:layout_height="wrap_content" android:text="Change Preferences"></Button>
</LinearLayout>
   <menu xmlns:android="http://schemas.android.com/apk/res/android">
        <item android:title="Prefernces" android:id="@+id/Prefernces"></item>
</menu>

В консоли получаю следующую ошибку:

[2011-08-17 14:47:00 - Preferences] D:\AndroidWorkSpace\Preferences\res\menu\menu.xml:10: error: Error parsing XML: junk after document element
[2011-08-17 14:47:02 - Preferences] W/ResourceType( 3524): Bad XML block: no root element node found
[2011-08-17 14:47:02 - Preferences] D:\AndroidWorkSpace\Preferences\res\menu\menu.xml:10: error: Error parsing XML: junk after document element

я что-то пропустил.

Ответы на вопрос(4)

Ваш ответ на вопрос