I am using code to get values of HTML attributes like:
Set myPhoto = doc.DocumentElement.getElementsByTagName("ul"): i = 2
For Each e In myPhoto
...
MyNodeValue = Trim(e.ChildNodes(0).ChildNodes(0).ChildNodes(0).src)
...
next
It has been working well until now. Excel shows me "Automation error" in case nodespath is exist.
The code string work well if use Children(0) vs Childnodes(0) like:
MyNodeValue = Trim(e.Children(0).Children(0).Children(0).src)
I can't understand what happened with code and why ChildNodes(0) doesn't work?