以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 WORD to XML, HTML to XML 』  (http://bbs.xml.org.cn/list.asp?boardid=13)
----  在VB里怎么操作XML文档?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=13&rootid=&id=26473)


--  作者:sunrisefe
--  发布时间:1/16/2006 12:02:00 PM

--  在VB里怎么操作XML文档?
我在VB里直接用
Dim xmldoc As DOMDocument
Set xmldoc = New DOMDocument
xmldoc.Load "E:\毕业论文\WORD VBA\tempXml.xml"
却不能将XML文档载入,不能进行文档的操作,请问各位问题出在哪里了,谢谢
--  作者:Qr
--  发布时间:1/16/2006 12:19:00 PM

--  
Dim xmlDoc As New Msxml2.DOMDocument40
xmlDoc.async = False
xmlDoc.resolveExternals = False
xmlDoc.Load ("C:\temp\books.xml")
If (xmlDoc.parseError.errorCode <> 0) Then
   Dim myErr
   Set myErr = xmlDoc.parseError
   MsgBox("You have error " & myErr.reason)
Else
   MsgBox xmlDoc.xml
End If

W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
3,750.000ms