Question : Reference Data In XML Document

Greetings;

I am a complete novice when it comes to XML.

I have the following XML:

 
-
-
-
 

 


The XML is located in a variable called xmlResponse with a type of xmlDocument.

I need to reference in my VB code the value of the "isReady" attribute and the value of the  "rxNumber" node.

Would someone be willing to post back the solution in VB please?


Much thanks ... David

Answer : Reference Data In XML Document

Dim xl As New XmlDocument
xl.Load("yourdocument")
If Convert.ToBoolean(xl.SelectSingleNode("script").Attributes("isReady").Value) = True Then
'do something
End If
Random Solutions  
 
programming4us programming4us