请帮我:VB处理XML文件,xml.load(aFilepath)的时候出错
我在VB里引用了Miscrosoft XML,v3.0
做xml.Load(aFilepath)的时候就跳转到Set xml = Nothing,蓝色光标覆盖了Nothing,然后就出Compile Error:Object ibrary feature not supported
这时候看VB的引用里Miscrosoft XML,v3.0就不见了,请问各位这是什么原因呢?部分代码如下:
Private mvarxml As New DOMDocument
Public Property Set xml(ByVal vData As DOMDocument)
'used when assigning an Object to the property, on the left side of a Set statement.
'Syntax: Set x.xml = Form1
Set mvarxml = vData
End Property
Public Property Get xml() As DOMDocument
'used when retrieving value of a property, on the right side of an assignment.
'Syntax: Debug.Print X.xml
Set xml = mvarxml
End Property
Private Sub Class_Initialize()
Set xml = Nothing
End Sub