I am trying to loop through System.XML.XMLNodeList which should execute 3 times but its executing only once.
It has become very frustrating for me now as I am unable to get even a clue of whats going wrong with my code. Any help would be greatly appreciated
Below is my function
Function extractXML(ByVal sXML As XmlDocument) As XmlDocument
Dim oMain As XmlNode
Dim oMainNode As XmlNode = Nothing
Dim oMainNodes As XmlNodeList
Dim arrPath() As String
Dim sPathVar As String
Dim sPath As String = "RESPONSE100/FIELDS100/QUESTIONS"
Dim oXML As New XmlDocument
oMain = oXML.SelectSingleNode(sPath)
oMainNodes = oMain.ParentNode.ChildNodes
View Complete Post