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>"&rootnode.childnodes.item(i).firstchild.text
end if
next