Take the 2-minute tour ×

I tried to edit the XML in graphical layout. When I switched to the main.xml tab I saw that the XML file is empty. To recover I need to restart Eclipse.

What can I do to prevent restarting Eclise?

share|improve this question
did U tried with closing the xml file and open it again. –  Padma Kumar Mar 14 '12 at 12:57
add comment

1 Answer

I've experienced this in Eclipse as well. Usually a ctrl-shift-F (format document) does the trick for me. Or closing and reopening the file.

share|improve this answer
add comment

Your Answer


