also ich hab folgendes problem, hab auch gesucht aber entweder gabs dazu nix oder ich weiß nich nach was ich suchen soll!
ich muss aus folgender xml-datei, welche ich in einem einzigen String bekomme, die links extrahieren und anzeigen. Im moment ist das ganze noch in ner TStringList (sl) weil ich dacht das ich das dann da Zeilenweise bekomme, es ist aber trotzdem das gesamte xml-dokument in sl.strings[0]
Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14:
| <?xml version="1.0" encoding="iso-8859-1"?> <links> <image_link>http://img166.imageshack.us/img166/9587/0809200516255fr.jpg</image_link> <thumb_link>http://img166.imageshack.us/img166/9587/0809200516255fr.th.jpg</thumb_link> <ad_link>http://img166.imageshack.us/my.php?image=0809200516255fr.jpg</ad_link> <thumb_exists>yes</thumb_exists> <total_raters></total_raters> <ave_rating></ave_rating> <image_location>img166/9587/0809200516255fr.jpg</image_location> <thumb_location>img166/9587/0809200516255fr.th.jpg</thumb_location> <server>img166</server> <image_name>0809200516255fr.jpg</image_name> <done_page>http://img166.imageshack.us/content.php?page=done&l=img166/9587/0809200516255fr.jpg</done_page> </links> |
ich weiß das ich mit copy arbeiten kann, aber dafür bräuchte ich anfangs- und endpunkt um das zu machen (Copy(String,Start,Länge))
also ist jetzt meine frage wie ich bestimmen kann wo sich z.b. das <done_page> befindet und wo das </done_page>