msxml的用法

nices 2003-06-17 11:46:31
如何通过ASP来分解Delphi传过来的XML流。
<%
Set xml=server.CreateObject("msxml2.DomDocument")
xml.async=False
xml.Load Request
Set N=xml.selectSingleNode("command/commandtext")
commandText=N.Text
%>
为什么会提示commandText=N.Text处缺少对象
...全文
26 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
nices 2003-06-17
  • 打赏
  • 举报
回复
如何取得节点属性值
ssm1226 2003-06-17
  • 打赏
  • 举报
回复
Set N=xml.selectSingleNode("command/commandtext")
IF N is Nothing Then
response.write "此节点不存在!"
response.end
End If
funboy88 2003-06-17
  • 打赏
  • 举报
回复
用绝对路径的吧
funboy88 2003-06-17
  • 打赏
  • 举报
回复
<%
Set xml=server.CreateObject("msxml2.DomDocument")
xml.async=False
xml.Load(Request)
Set N=xml.selectSingleNode("//command/commandtext")
commandText=N.text
%>

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧