hi,
I have a problem with the below code. It gives error Public member 'resolveExternal' on type 'DOMDocumentClass' not found. at the palce i mark in green. Please help me to solve this.....
Public Sub ReadIndXML(ByVal LoopID As Integer)
Dim strXMLPath As String '= ""
Dim xmlRoot As MSXML.IXMLDOMElement
Dim objDOMXML As New MSXML.DOMDocument
Dim intNodesLength As Short
Dim i As Integer = 0
'Dim strOutput As String = ""
strXMLPath = CurDir() & "\Config\MainConfig.xml"
objDOMXML.resolveExternal = True
objDOMXML.validateOnParse = True
objDOMXML.async = False
Call objDOMXML.load(strXMLPath)
xmlRoot = objDOMXML.documentElement
If xmlRoot.baseName = "Configuration" Then
If xmlRoot.childNodes.item(LoopID).hasChildNodes = True Then
intNodesLength = xmlRoot.childNodes.item(LoopID).childNodes.length
xmlRoot = xmlRoot.childNodes.item(LoopID).firstChild
For i = 0 To intNodesLength - 1
If xmlRoot.attributes.item(0).text = "Assets" Then
XmlAssetsPath = xmlRoot.text
ElseIf xmlRoot.attributes.item(0).text = "PrimaryLanguage" Then
XmlPrimaryLanguage = xmlRoot.text
End If
xmlRoot = xmlRoot.nextSibling
Next i
End If
End If
objDOMXML.abort()
End Sub