XML中的转义字符

来源:互联网 发布:淘宝网外贸原单店铺 编辑:程序博客网 时间:2024/05/18 00:01

在Android开发的strings.xml配置文件中,其中一个元素是:

<string name="home_page">https://accounts.google.com/ServiceLogin?hl=zh-CN&amp;continue=https://www.google.com</string>
应将&进行跳脱处理,既将&写成&amp;

http://stackoverflow.com/questions/8409561/android-rss-xml-error 这里可以学习到相关术语

ampersand:&

an unescaped ampersand :没有跳脱的&

XML parse:XML解析器

In a XML document the & sign has to be escaped like this: 在XML文件中,&符号需要像这样进行跳脱处理

http://www.cnblogs.com/hyd309/p/3549076.html 这里有xml需要进行跳脱处理的字符

0 0
原创粉丝点击