Getting a The entity name must immediately follow the '&' in the entity reference error in java, but I dont have any ampersands in my xml file

后端 未结 2 641
生来不讨喜
生来不讨喜 2021-01-05 17:28

I am getting the error

The entity name must immediately follow the \'&\' in the entity reference.

but I don\'t have any ampersands in m

相关标签:
2条回答
  • 2021-01-05 17:49

    In string.xml

    Every ampersand should be replaced by

        &
    
    0 讨论(0)
  • 2021-01-05 18:08

    Yes, you do have an ampersand:

    <item><title>Pad & Quill
    

    Try

    <item><title>Pad &amp; Quill
    

    Also, this was probably a typo: <\item><title>Deal of the Day which you can correct by removing the backslash.

    0 讨论(0)
提交回复
热议问题