200分求助!!!!!!!!!!!!!!!!!!!!!(100分)

  • 主题发起人 dinghancheng
  • 开始时间
D

dinghancheng

Unregistered / Unconfirmed
GUEST, unregistred user!

我想在一个音乐文档中按音乐名查询音乐的信息,把找到的结点添加到一个内存中的xml文档

set allmusic=server.createobject("msxml2.domdocument.3.0")
set foundmusic=server.createobject("msxml.domdocument")
set musicstyle=server.createobject("msxml.domdocument")
allmusic.async=false
foundmusic.async=false
musicstyle.async=false

allmusic.setproperty "selectionLanguage","xPath"
musicstyle.setproperty "selectionLanguage","xPath"
set rootsearch=foundmusic.createelement("document")
foundmusic.appendchild(rootsearch)
set rootnode=allmusic.documentelement
for i=0 to rootnode.childnodes.length-1
if rootnode.childnodes.item(i).firstchild.text={要查询的子结点的值} then
[brown]

问题在下面两句--------------总是出现“无效参数”的错误信息
set getnode=rootnode.childnodes.item(i)
set currentnode=rootsearch.appendchild(getnode)

response.write "<hr>"&amp;rootnode.childnodes.item(i).firstchild.text
end if
next
 

Similar threads

I
回复
0
查看
540
import
I
I
回复
0
查看
461
import
I
I
回复
0
查看
674
import
I
I
回复
0
查看
609
import
I
顶部