Dim RS As New ADODB.RecordsetRS.Open "DriverName:\FileName.xml", "Provider=MSPersist;", , , adCmdFile
解决方案 »
- 已经在vsflexgrid 8.0控件填写了一些数据,请问怎么知道这个控件实际有多少行的数据?
- 请教各位高手 windows media player 9 控件的问题
- TreeView控件,已知节点A的KEY值,怎么删除这个节点A?
- 如何运用ActiveBar做出带有TreeView内容的TabStrip,而且TreeView中的内容与TabStrip控件的大小变化而变化
- 急!!!!如何让access中的ole字段显示在datareport中!!!急!!!!!
- 求把XML数据代入LISTVIEW的例子
- 问个弱智问题
- 救急
- VB如何把如下1.txt转换成2.txt?
- 请问如何用DATA控件连接一个含有密码的ACCESS数据库?
- 倒分啦!!!!程序员的平均年龄是多少?? 大家可以口算,也可以用程序算!!尽情发挥吧
- 请教一个很菜的问题,怎样定制vb程序的图标呢?
dim xDoc as MSXML2.DOMDocument
if xDoc.load("XML文件") then
'加载成功
else
'加载失败
endif
Dim nodeBook As IXMLDOMElement
Dim sIdValue As String
xmlDoc.async = False
xmlDoc.Load "books.xml"
Set nodeBook = xmlDoc.selectSingleNode("//book")
sIdValue = nodeBook.getAttribute("id")
MsgBox sIdValue
dim xmldoc
set xmldoc = Server.CreateObject("Msxml2.DOMDocument")
xmldoc.load("c:\myfile.xml")
xmldoc.save(Server.MapPath("sample.xml"))The Active Server Pages (ASP) Response object sends the document back to the client that invoked the ASP script. dim xmldoc
set xmldoc = Server.CreateObject("Msxml2.DOMDocument")
xmldoc.load(Server.MapPath("sample.xml"))
xmldoc.save(Response)
你能否把你举例的XML文档也显示出来?
要不然我们就不知道"//book" "id"是什么意思啊!