Error:the Processing Instruction Target Matching "[xx][mm][ll]" Is Not Allowed
Solution 1:
Please make sure there should not any character before <?xml
at the start of xml file.
hope this will help you
Solution 2:
Yes, that xml listing has several mistakes (assuming it's meant to be only one file).
Remove those string resources and place them in their own strings.xml
file inside your project's res/values
folder. Furthermore, that strings.xml file should also start with its own <?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?><resources><stringandroid:name="app_name"></string><stringandroid:name="edit_message"></string><stringandroid:name="button_send"></string><stringandroid:name="action_settings"></string><stringandroid:name="title_activity_main"></string></resources>
This is not an error, but you may want to add some possible text labels to those string resources like this:
<?xml version="1.0" encoding="utf-8"?><resources><stringandroid:name="app_name">My Application Name</string><stringandroid:name="edit_message"></string><stringandroid:name="button_send">Send</string><stringandroid:name="action_settings"></string><stringandroid:name="title_activity_main"></string></resources>
Don't forget to close your LinearLayout with:
</LinearLayout>
Remove one of the two requestFocus, I would assume that you should only have one per layout (assuming that again, you only meant to show us only one file and not multiple files).
<requestFocus />
And remove that last line (that is what Eclipse is complaining about):
<?xml version="1.0" encoding="utf-8"?>
You do keep the one from the very first line of your xml file, but you remove the one from the last line, because that type of directive doesn't close.
Let me know if this fixed all your problems. I can't be sure it did because I didn't take the time to open my other computer and check with Eclipse.
Solution 3:
Yes, There should not be any character before <?xml
.. Not even the blank character.. I had the same problem.. got resolved..
Solution 4:
1) When using or tag in XML file make sure your code does not contain any undeclared variables (in the string.xml file)
2) Make sure the "R.java" file reflects all the variables used.
3) Re-Build your project and verify.
Solution 5:
Open manifest.xml press ctrl+A
then ctrl+I
. It will auto format your manifest.xml.
Post a Comment for "Error:the Processing Instruction Target Matching "[xx][mm][ll]" Is Not Allowed"