File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Android: strings.xml automatically shows standalone=“no” Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Android: strings.xml automatically shows standalone=“no”" Watch "Android: strings.xml automatically shows standalone=“no”" New topic

Android: strings.xml automatically shows standalone=“no”

Madhu Nandan
Ranch Hand

Joined: Dec 16, 2010
Posts: 52


I have a strange problem. In the strings.xml file of my project, the first line is <?xml version="1.0" encoding="utf-8"?> But every time I close and open the file, the first line changes automatically to <?xml version="1.0" encoding="utf-8" standalone="no"?> and this I guess is not allowing me to run the project on real phone (it runs on emulator). Though I remove standalone="no" and save the file, it appears again when I open the file.

What is the reason for this and how to overcome this?

Thank you for your time.

I agree. Here's the link:
subject: Android: strings.xml automatically shows standalone=“no”
Similar Threads
removing first line from JAXB generated XML
Problem with utf-8
JSTL xml tag throwing error
JaxB issue
Xml File generation - xstream