XML parser error in notepadv1 manual

I am working on a notpadv1 tutorial. I get an error message from the parser as soon as I create a new xml file named note_row.xml and put the following code: The error is at the end of the file. It says: a few annotations found on this line Premature end of XML parsing: element not found

I also see the following error in the console: [2010-07-04 05:34:32 - Notepadv1] Error in the XML file: aborting build.

I follow the instructions in step 5 of the following URL: http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html

0
source share
3 answers

You have an error in one of your XML resource files, such as a layout. It is impossible to tell from the error information given here exactly where your problem lies. There should be a line before the one you show in the console that will explain to you which file has the problem and what the problem is. If not, check your files in Eclipse and look for warnings or errors.

0
source

Thanks. The problem was in the file type. I created a regular file, and I need an xml file. Instead of the file> new, I used the file> new> another, and then selected xml. This fixed it. I need to be able to better understand error messages. If you can offer a document or a textbook, I would really appreciate it.

0
source

This is a strange error, but is not able to find rootCause. But whenever this happens,

I cut out my xml code from a file, saved it; Then paste all the code back into the file and save it again. The error will disappear. I do not even consider this a solution. But it works.

Link to THIS THREAD may help.

0
source

All Articles