Hi guys,
I have a strange issue that I just can't get an answer.
I have a relatively large xml to which I do the following:
XMLDOC.Load (oFile)
Set objFileNode = XMLDOC.SelectSingleNode("gfx")
If Not objFileNode Is Nothing Then
Set xmlNodeList = objFileNode.SelectNodes("group")
.....
end if
As you can see, I want to catch all group nodes directly under the main node (gfx). They should all have the gfx node as parent BUT?!? when I look at each node in xmlNodeList, some of them have ParentNode = Nothing. How come? If it found it in the select
line, it should know it came from it's parent or it wouldn't of found it and I need that parent value from the node later on for other stuff.
I guess there's something I don't see or understand
thanks