Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: Error parsing XML: not well-formed (invalid token) ...?

I am working on an application, with following XML. but whenI try to clean/build my project the following error occurs:

"error: Error parsing XML: not well-formed (invalid token)"

<?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" > <TextView   android:layout_width="fill_parent"  android:layout_height="wrap_content"  android:text="@string/hello"; /> </LinearLayout> 

What does it possibly mean?

like image 783
Usama Sarwar Avatar asked Aug 17 '11 08:08

Usama Sarwar


People also ask

What causes XML parsing error?

Several users report dealing with the XML Parsing Error whenever they try to open a Microsoft Word document that they previously exported. The issue typically occurs after the user has upgraded to a newer Office version or after if the Word document was previously exported from a different program.


1 Answers

I had this problem, and when I had android:text="< Go back" it had the correct syntax highlighting, but then I realized it's the < symbol that is messing everything up.

like image 161
Rock Lee Avatar answered Sep 28 '22 00:09

Rock Lee