|
-
April 8th, 2008, 01:19 PM
#1
Infinite Loop in For oXMLobject.selectNodes when migrate to VB.NET
I used the VS2005 migration wizard to migrate a VB6 program to VB.Net. The following snippets of the For loop codes executes once through the loop in VB6, but was in the infinite loop when the codes were migrated to VB.NET. Any suggestion would be appreciated.
Private oXMLobject As New MSXML2.DOMDocument
Dim objNode As MSXML2.IXMLDOMNode
Dim versionInfo As String
versionInfo = ""
oXMLobject = Nothing
oXMLobject = New MSXML2.DOMDocument40
oXMLobject.async = False
oXMLobject.Load(tramFlNm)
For Each objNode In oXMLobject.selectNodes("trademark-applications-daily/version")
versionInfo = objNode.xml
Next objNode
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|