在我看的每个地方,帖子告诉我用他们的html实体来逃避xml特殊字符,但我仍然得到 XML解析错误.我收到的错误信息是“未识别的实体”,它出现在 amp; amp; amp; amp; amp; amp;和 reg;标记(没有空格
<?xml version="1.0" encoding="UTF-8"?>
<maps>
<location id="tx">
<item label="Lobby & Entrance" xpos="125" ypos="112" />
<item label="Restaurant & Bar" xpos="186" ypos="59" />
<item label="Swimming Pool" xpos="183" ypos="189" />
<item label="Nautilus Gym®" xpos="154" ypos="120" />
</location>
</maps>
更换:
&安培; REG;通过:®
和
&放大器;放大器;通过:&
并且您的XML将是有效的
