CNET中国旗舰网站

ZDNet China | CNET科技资讯网 | 政府采购 | 行业网站联盟





 
标题: [求助] 用 xmlhttp 返回的 xml 文档,解释时提示有“未定义实体”的错误
wind1980
灵玉会员
Rank: 8Rank: 8



UID 307574
精华 1
积分 6932
帖子 725
威望 3142
ZD币 927 元
阅读权限 180
注册 2008-3-14
状态 离线
  楼主
发表于 2008-4-17 14:52  资料  个人空间  短消息  加为好友 
开发者在线

用 xmlhttp 返回的 xml 文档,解释时提示有“未定义实体”的错误

返回的结果如下:   
  <response>   
  <GBInfo>   
  <nID>1147</nID>   
  <mID>0</mID>   
  <Title>asfsaff</Title>   
  <Text>   
  <br><br>     response.write "<SearchType>"& SearchType &"</SearchType>"<br>     response.write "<Value>"& Value &"</Value>"<br>     response.write "<Order>"& Order &"</Order>"<br>     response.write "<Page>"& CStr(iPage) &"</Page>"<br>     response.write "<Caption>"& Caption &"</Caption>"<br>     response.write "<RecordCount>"& CStr(iCount) &"</RecordCount>"<br>     response.write "<PageCount>"& CStr(iPageCount) &"</PageCount>"   
  </Text>   
  <User>agasdf</User>   
  <Email>asfsa</Email>   
  <AddTime>2006-09-21   14:52</AddTime>   
  <ReplyTime></ReplyTime>   
  <VisitCount>0</VisitCount>   
  <ReplyCount>0</ReplyCount>   
  </GBInfo>   
  <GBInfo>   
  <nID>1146</nID>   
  <mID>0</mID>   
  <Title>ggffasfasdf</Title>   
  <Text>fasdfsdff</Text>   
  <User>sdfgs</User>   
  <Email>dsdfgsdg</Email>   
  <AddTime>2006-09-21   14:51</AddTime>   
  <ReplyTime></ReplyTime>   
  <VisitCount>0</VisitCount>   
  <ReplyCount>0</ReplyCount>   
  </GBInfo>   
  <SearchType>listAll</SearchType>   
  <Value>1=1</Value>   
  <Order>Order   by   ReplyTime</Order>   
  <Page></Page>   
  <Caption></Caption>   
  <RecordCount>2</RecordCount>   
  <PageCount>1</PageCount>   
  <iError>0</iError>   
  <message></message>   
  </response>   
   
  出错误的地方大概就是第一个   <Text>   里面那些Html的特殊转义字符




顶部
 



当前时区 GMT+8, 现在时间是 2009-7-5 10:08

  Powered by Discuz! 5.5.0 © 2001-2007 Comsenz Inc.
Processed in 0.059334 second(s), 3/3 queries

清除 Cookies - 联系我们 - ZDNetChina中文社区 - 无图版