Final code looks like this :
output looks like this :Code:Dim doc As XDocument doc = XDocument.Load("http://world.needforspeed.com/SpeedAPI/ws/game/nfsw/driver/" + TextBox1.Text + "/car") For Each node In doc.Descendants("worldCar") Dim ss As String() = Split(node.ToString, "carId") For i = 0 To ss.Length - 1 TextBox2.Text = " Drivers Name : " + TextBox1.Text + vbCrLf + (i.ToString & " " & ss(i) & vbCrLf) Next Next
What is the 1 in the beginning ? and how can I put all the nodes 1 by 1 in line. likePHP Code:Drivers Name : nfswdev
1 ="13512645" make="CAR_MANU_DODGE" carName="CAR_MDL_CHARGER07BEE">
<physicsProfile acceleration="547" handling="247" rating="406" topSpeed="426" carClass="carclass_c" />
</worldCar>
car id : result
acceleration : result
and so on
the real XML output on the webpage is like this :
PHP Code:<worldCar carId="13512645" make="CAR_MANU_DODGE" carName="CAR_MDL_CHARGER07BEE">
<physicsProfile acceleration="547" handling="247" rating="406" topSpeed="426" carClass="carclass_c"/>
</worldCar>




Reply With Quote