Don't use resolveExternal when xml document is constructed without exernal/internal DTD. Please post XML document here.
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
Sorry! but the same code is running perfectly. (MSXML 2.0, MSXML2.6, 3.0 and other com lib). Try the .net framework System.XML API instead of COM.
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
Imports System.Xml.Linq
Imports System.Xml
Public Class Sample
Private Sub ReadData()
Dim strXMLPath As String = "c:\path\config.xml"
Dim doc As XDocument = XDocument.Load(strXMLPath)
Dim path, lang As String
For Each var In doc.Descendants("Value")
If var.HasAttributes Then
Select Case var.Attribute("Name").Value
Case "Assets"
path = var.Value
Case "PrimaryLanguage"
lang = var.Value
End Select
End If
Next
End Sub
End Class
__avd
Posting Genius (adatapost)
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241