Dim RS As New ADODB.RecordsetRS.Open "DriverName:\FileName.xml", "Provider=MSPersist;", , , adCmdFile

解决方案 »

  1.   

    纠正一下,是如何读写xml文档
      

  2.   

    引用microsoft xml 3.0
    dim xDoc as MSXML2.DOMDocument
    if xDoc.load("XML文件") then
      '加载成功
    else
      '加载失败
    endif
      

  3.   

    Dim xmlDoc As New Msxml2.DOMDocument
    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
      

  4.   

    Specifies the file name. Note that this must be a file name rather than a URL. The file is created if necessary and the contents are entirely replaced with the contents of the saved document. This mode is not intended for use from a secure client such as Microsoft® Internet Explorer. 
        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)
      

  5.   

    whiteeat(阿鬼) :
    你能否把你举例的XML文档也显示出来?
    要不然我们就不知道"//book" "id"是什么意思啊!