1

Why would I get, "error:Error parsing XML: not well-formed (invalid token)"

on this line (which is a comment):

<!-- added fillViewport as preventive measure after reading http://stackoverflow.com/questions/2599837/linearlayout-not-expanding-inside-a-scrollview -->

?

B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862

3 Answers3

4

I'm gonna guess you added that comment in the middle of a tag. You can't do that. This is wrong:

  <ScrollView
     android:... <!-- this won't work -->
     android:...
  >
  </ScrollView>

Just move it to be outside of the < and >.

dmon
  • 30,048
  • 8
  • 87
  • 96
3

Try removing the dashes in the URL. Try showing all non-printable characters in your text editor, as you may have copied a control character.

Chloe
  • 25,162
  • 40
  • 190
  • 357
2

Remove the comment and type it back by hand. You most probably have unprintable characters in there.

Sid
  • 7,511
  • 2
  • 28
  • 41