I've been using my XMLReader for reading out XML-Files generated by MS InfoPath for quite a while. Now I face the problem that there are multiple nodes with the same generated name in different parent nodes and I need to separate them.
example:
If .NodeType = XmlNodeType.Element Then
If .Name = "pc:DisplayName" Then
projectteam &= vbTab
pteamDataset = True
End If
End If
This is what I use so far to search if there are any elements in pc:DisplayName
So now I have this element in several groups. Which means if I still use this code all people from all groups would be saved into projectteam
Sadly it doesn't work with the full xPath:
If .Name = "my:projectteam1/pc:person/pc:DisplayName" Then
projectteam1 &= vbTab
If .Name = "my:projectteam2/pc:person/pc:DisplayName" Then
projectteam2 &= vbTab
Is there any other way to call for a specific childNode or do I really have to display the data recursivly?