如何在XML中转义“&”?

Possible Duplicate:
07000

我写

<string name="magazine">Newspaper & Magazines</string>

在strings.xml中

但编译器说:

The entity name must immediately follow the '&' in the entity reference.    strings.xml /OOReaderWidget/res/values  line 9  Android XML Format Problem

那么如何显示“&”在strings.xml中?谢谢!

使用&代替&

改成

<string name="magazine">Newspaper &amp; Magazines</string>

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念