Microsoft.XMLDOM

hi,i have this page xml:

<?xml version="1.0" encoding="iso-8859-1" ?>

i use this code for retrive info tag:

Set xmlDoc = CreateObject(“Microsoft.XMLDOM”)

xmlDoc.async = True

xmlDoc.load url

Set root1 = xmlDoc.documentElement

Set onodelist= root1.childNodes

count = 0

Forall node In onodelist

Msgbox(node.nodename)

Msgbox(node.text)

End Forall

the name of the tag (node.nodename) is ok, but all text (node.text) into the tag are always empty, why???

thank’s

Marco

Subject: RE: Microsoft.XMLDOM

Why are you instantiating the MS XMLDOM object for this? You have native classes to use in Notes 6+. They’re faster, more reliable, cross-platform… why would you want to call a COM object?

Subject: RE: Microsoft.XMLDOM

now I can retrive the xml with :

Set xmlDoc = CreateObject(“Microsoft.XMLDOM”)

xmlDoc.load url

msgbox(“hello”)

xml = xmlDoc.xml

but if I don’t use the msgbox my variable “xml” is empty, why???

thank’s

Marco

Subject: RE: Microsoft.XMLDOM

Because there is no associated text. All of your data are in attribute values, not text nodes.