Hi all:
I have this piece of code:
Set xmldoc = CreateObject("Microsoft.XMLDOM")
xmldoc.loadXML xs '-> it's a well formed xml string
Set doc = xmldoc.documentElement
For Each node In doc.childNodes
'code
Next
It works OK in XL'97 BUT NOT in XL2000 or XP!!!! It gives a empty doc.
In order to work i have to change the line
xmldoc.loadXML xs
to
Open "c:\xmldoc.xml" For Output As #1
Print #1, xs;
Close #1
xmldoc.Load "c:\xmldoc.xml"
What's happening and why? How to correct it properly?
Many Thanks.