Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4545456
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:48:58+00:00 2026-05-21T15:48:58+00:00

I made an XML file under my newly created res/menu folder. Menu.xml contains my

  • 0

I made an XML file under my newly created res/menu folder. Menu.xml contains my menu definition for use with MenuInflater.

The entire XML file looks like this:

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
   <item android:id="@+id/settings"
      android:title="@string/settings_label"
      android:alphabeticShortcut="@string/settings_shortcut" />
</menu>

I’m trying to run the program and the console keeps returning two problems.

  1. Bad XML block: no root element node found
  2. error: Error parsing XML: unbound prefix

I can’t seem to see what’s wrong with my XML file. Any thoughts? Am I missing something basic here?

I know the android dev docs say that MenuInflater “only works with an XmlPullParser returned from a compiled resource (R. something file.)” Doesn’t that just mean that I need to create an XML file under my res/ folder as I’ve done? Did I screw something up here? (I just created a new android xml file. put it under Res/menu and referenced it as “R.menu” when I called the inflate method.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T15:48:58+00:00Added an answer on May 21, 2026 at 3:48 pm

    Project > Clean is like “make clean” on Unix. It deletes all your generated files and starts from scratch. It also deletes items in your Problems window. Sometimes Eclipse gets confused and doesn’t clear the problems or rebuild properly so Project > Clean comes to the rescue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My object template , which is deserialized from a hand made XML file contains
I am trying to parse an XML file I made and pull information out
I made a simple map, and loaded all my points from a xml file,
New to NetBeans dev here. When I first created my project and began compiling,
This is a somewhat different question about Tomcat deployment. It has been covered partially
I have Tomcat 5.5 + Axis2 1.5.5 + 2 servlets running. One of my
I have a Visual Studio 2010 Database project, from which I want to generate
I'm trying to ammend an existing SOAP Webservice that uses Spring-WS and JAXB on
I learned from android dev tutorial and now I can make ListView. and it
I uploaded one of my app before couple of weeks and it is available

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.