M
M
Mors Clamor2014-06-15 13:32:04
Visual Basic
Mors Clamor, 2014-06-15 13:32:04

How to pull data from vb.net?

I work with vk api. I get the current status of the user. The response comes in xml format:

<?xml version="1.0" encoding="utf-8" ?> 
- <response>
  <text>mystatus123</text> 
  </response>

Between the text tags is the status. How can I get it into a variable?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xavis, 2014-06-15
@66demon666

Dim xml As String = "XML code received from VK"
dim status as string=""
Dim myXml As New Xml.XmlDataDocument
myXml.LoadXml(xml)
status = myXml.SelectSingleNode("/response/text").InnerText

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question