11-07-18, 03:06 AM
PHP كود :
Imports System.Xml
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim url As String = "http://ip-api.com/xml/" & TextBox1.Text
Dim xdoc As New XmlDocument
xdoc.Load(url)
TextBox2.Text = xdoc.DocumentElement.SelectSingleNode("//country").InnerText
TextBox3.Text = xdoc.DocumentElement.SelectSingleNode("//regionName").InnerText
TextBox4.Text = xdoc.DocumentElement.SelectSingleNode("//city").InnerText
TextBox5.Text = xdoc.DocumentElement.SelectSingleNode("//lat").InnerText
TextBox6.Text = xdoc.DocumentElement.SelectSingleNode("//lon").InnerText
TextBox7.Text = xdoc.DocumentElement.SelectSingleNode("//timezone").InnerText
TextBox8.Text = xdoc.DocumentElement.SelectSingleNode("//isp").InnerText
TextBox9.Text = xdoc.DocumentElement.SelectSingleNode("//as").InnerText
TextBox10.Text = xdoc.DocumentElement.SelectSingleNode("//query/query").InnerText
End Sub
End Class
تم تصحيح الرابط الخاص بالمعلومات

..