To anyone that may help.
I have just started learning xml and am having trouble with accessing an attribute (I think it's called an attribute) in an xml document.
For an example here is some source code from the xml doc.
<reply>
<lastPrice value="6.550" ></lastPrice>
</reply>
I have a good knowledge of visual basic and am trying to write a program that will access the xml doc with the following example code that I have written.
Dim xmldoc
Set xmldoc = CreateObject("Microsoft.XMLDOM"
xmldoc.async = False
xmldoc.Load ("c:\My Documents\snapshot.xml"
MsgBox xmldoc.documentElement.childNodes.Item(0).getAttribte (value)
With this code I am trying to attain the value of 6.550 from the above xml document (above VB code example placing it in a message box).
If anyone has any suggestion on how I might get this to work I would be much appreciated.
Thanking you in advance.
I have just started learning xml and am having trouble with accessing an attribute (I think it's called an attribute) in an xml document.
For an example here is some source code from the xml doc.
<reply>
<lastPrice value="6.550" ></lastPrice>
</reply>
I have a good knowledge of visual basic and am trying to write a program that will access the xml doc with the following example code that I have written.
Dim xmldoc
Set xmldoc = CreateObject("Microsoft.XMLDOM"
xmldoc.async = False
xmldoc.Load ("c:\My Documents\snapshot.xml"
MsgBox xmldoc.documentElement.childNodes.Item(0).getAttribte (value)
With this code I am trying to attain the value of 6.550 from the above xml document (above VB code example placing it in a message box).
If anyone has any suggestion on how I might get this to work I would be much appreciated.
Thanking you in advance.