Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Translating with Google, the website </p> <p><a href="http://www2.htw-dresden.de/~rawa/cgi-bin/auf/raiplan_app.php" rel="nofollow">http://www2.htw-dresden.de/~rawa/cgi-bin/auf/raiplan_app.php</a></p> <p>says 'Create a schedule in csv format' and entering the matriculation number from your code 33886, it returns a web page that has in its the data you're trying to get at:</p> <pre><code> &lt;Stunde&gt; &lt;titel&gt;Englisch C1 III/SI (w.o.)&lt;/titel&gt; &lt;kuerzel&gt;Engl_C1 Üw3/SI Technik&lt;/kuerzel&gt; &lt;raum&gt;S 334&lt;/raum&gt; &lt;dozent&gt;Kilian&lt;/dozent&gt; &lt;datum&gt;16.10.2013&lt;/datum&gt; &lt;anfang&gt;7:30&lt;/anfang&gt; &lt;ende&gt;9:00&lt;/ende&gt; &lt;/Stunde&gt; </code></pre> <p>If you extract this data and form a new XML string, then the XML Parser will run. The tag is where this data begins, and the last one is followed by a <br>, so this code will extract out the elements:</p> <pre><code>NSRange startRange = [dataString rangeOfString:@"&lt;Stunde&gt;"]; NSString *dataAfterHtml = [dataString substringFromIndex:startRange.location]; NSRange endRange = [dataAfterHtml rangeOfString:@"&lt;br&gt;"]; dataAfterHtml = [dataAfterHtml substringToIndex:endRange.location]; NSString *formattedXML = [NSString stringWithFormat:@"&lt;data&gt;%@&lt;/data&gt;", dataAfterHtml]; </code></pre> <p>now give this the parser</p> <pre><code>NSData *data = [formattedXML dataUsingEncoding:NSUTF8StringEncoding]; xmlParser = [[NSXMLParser alloc] initWithData:data]; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload