我编写了一个类似于
<app>
<html_code>
<div id="id-5" class="portlet last">
<div class="portlet-header">Weather</div>
<div class="portlet-content">
</div>
</div>
</html_code>
</app>我使用"editix-xmleditor“来检查或验证xml文件它是正确的
但是,当我插入<iframe></iframe>标记及其信息时:
<app>
<html_code>
<div id="id-5" class="portlet last">
<div class="portlet-header">Weather</div>
<div class="portlet-content">
<iframe src="http://www.thinkpage.cn/weather/weather.aspx?uid=&c=CHXX0008&l=zh-CHS&p=CMA&a=1&u=C&s=1&m=1&x=1&d=3&fc=&bgc=&bc=&ti=1&in=1&li=2&ct=iframe" frameborder="0" scrolling="no" width="208" height="260" allowTransparency="true"></iframe>
</div>
</div>
</html_code>
</app>然后我再次检查它,它告诉我“对实体”的引用"c“必须以';‘分隔符结尾。”。
另外,我使用jquery无法读取$.ajax,它直接执行错误函数。
那么,如何使<iframe>保持在原来的位置,同时使xml文件正确呢?
iframe到底怎么了?
谢谢您:)
发布于 2010-12-06 00:43:13
您必须将您的符号编码为HTML实体;不能简单地编写&,因为这标志着实体的开始,因此您必须将&字符表示为&。
发布于 2010-12-06 00:43:14
问题在于URL。若要在URL中有一个符号(&),必须将其编码为实体&
https://stackoverflow.com/questions/4362272
复制相似问题