Chance1234
IS-IT--Management
Mind has gone blank i have the following
<MAIL item='A'>
<to>BOB</to>
</MAIL>
<MAIL item='B'>
<to>Sid</to>
</MAIL>
i then have the following vbscript
Dim xmldoc
dim XLItem
set xmlDoc=CreateObject("Microsoft.XMLDOM"
XMLDoc.Load ("c:\ClientResourcing_eMail_Text.xml"
For each xlitem in xmldoc.documentElement.childNodes
msgbox xlitem.nodename
msgbox xlitem.text
next
which returns
MAIL
BOB
MAIL
SID
no problem , but what i want to return is the attribute value
Filmmaker, gentleman and pearls before swine fan
<MAIL item='A'>
<to>BOB</to>
</MAIL>
<MAIL item='B'>
<to>Sid</to>
</MAIL>
i then have the following vbscript
Dim xmldoc
dim XLItem
set xmlDoc=CreateObject("Microsoft.XMLDOM"
XMLDoc.Load ("c:\ClientResourcing_eMail_Text.xml"
For each xlitem in xmldoc.documentElement.childNodes
msgbox xlitem.nodename
msgbox xlitem.text
next
which returns
BOB
SID
no problem , but what i want to return is the attribute value
Filmmaker, gentleman and pearls before swine fan