I Am Legend
2011-12-14 18:09:35
how can i parse this XML
http://pastebin.com/raw.php?i=cQh47fBJ
so that each loop i do i can fill these variables
e.g.
for first loop
colour = 2565928
x = 976
y = 228
loop 2
colour = 2763307
x = 970
y = 208
and so on ..
i started on it using GetPage but im having problem going down line .=/
http://pastebin.com/raw.php?i=cQh47fBJ
so that each loop i do i can fill these variables
e.g.
for first loop
colour = 2565928
x = 976
y = 228
loop 2
colour = 2763307
x = 970
y = 208
and so on ..
i started on it using GetPage but im having problem going down line .=/
Remote := GetPage('http://pastebin.com/raw.php?i=cQh47fBJ');
writeln('hi');
for I := 0 to 31 do
begin
RemoteVersion := StrToInt(Between('</Item', '>', Remote));
writeln(RemoteVersion);
end;
Colour := StrToInt(Between('<Colour>', '</Colour>', Remote));
CoordX := StrToInt(Between('<CoordX>', '</CoordX>', Remote));
CoordX := StrToInt(Between('<CoordY>', '</CoordY>', Remote));