I had started to work on some android tutorial demo's from below link module 6.1 Project http://www.vogella.de/articles/Android/article.html
Am getting following error notification in eclipse for the menu tag in below menu.xml:
The markup in the document following the root element must be well-formed.
menu.xml (path: /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>
In console am getting following error:
[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
am i missing some thing.