<root>
<table name="radios">
<column name="nameradio">Radio1</column>
<column name="logo">http://app.syndicationradio.fr/demo/logo1.png</column>
<column name="stream">http://cloud2.syndicationradio.fr:8020</column>
<column name="twitter">http://www.twitter.com/#syndicationradio</column>
<column name="facebook">http://www.facebook.com/syndicationradio</column>
<column name="titre">http://app.syndicationradio.fr/demo/title.xml</column>
</table>
<table name="radios">
<column name="nameradio">Radio2</column>
<column name="logo">http://app.syndicationradio.fr/demo/logo1.png</column>
<column name="stream">http://cloud2.syndicationradio.fr:8020</column>
<column name="twitter">http://www.twitter.com/#syndicationradio</column>
<column name="facebook">http://www.facebook.com/syndicationradio</column>
<column name="titre">http://app.syndicationradio.fr/demo/title.xml</column>
</table>
</root>
Bitte jetzt ist es jemand Hilfe, um das herauszufinden, wie kann ich die URL aus den XML-Daten erhalte NSXMLParser
oder anderen XML-Parser annimmt TBXML
in IOS?Wie kann ich dieses XML mit NSXMLParser in iOS analysieren?
Edit: Sie können mir auch Beispiel für libxml
Parser für dieses XML geben.
Dank Im Voraus.
Ich habe eine Zeichenfolge, keine URL: NSString * urlString = [NSString stringWithFormat: @ "http://www.somewebsite.com/RunPHPtoOutputXML.php?id=%d", ii]; // ii ist eine ganze Zahl Ich führe dann folgendes aus und erhalte das XML: NSURLRequest * urlRequest = [NSURLRequest requestWithURL: [NSURL URLWithString: urlString]]; NSData * data = [NSURLConnection sendSynchronousRequest: urlRequest returningResponse: & Antwort Fehler: & Fehler]; – user3741598
@ user3741598 Genau was willst du fragen? –
Ich habe abgeschnitten - zu viele Zeichen - wird eine neue Frage öffnen. Obwohl ich gerade eine mögliche schnelle, schmutzige mögliche Antwort bei der Arbeit gefunden habe, werde ich versuchen, wenn ich nach Hause komme. Danke für die Frage. – user3741598