Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem: Parsing XML File in Objective-C/Cocoa Project for iOS
    primarykey
    data
    text
    <p>after searching days for a solution solving my errors, I want to share the whole problem with you. Maybe somebody have a better Idea to solve this.</p> <p>My Project uses a TabViewController to switch between Views. For every Tabview I load a separate class File to make it more clear.</p> <p>All the Content I need for the views comes from XML Files. I get'em via URL. The structure looks like this:</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;rss version="2.0"&gt; &lt;channel&gt; &lt;Slice id=1&gt; &lt;image&gt;www.testurl.com/test.jpg&lt;/img&gt; &lt;title&gt;Sample Title #1&lt;/title&gt; &lt;text&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy&lt;/text&gt; &lt;/Slice&gt; &lt;Slice id=2&gt; &lt;image&gt;www.testurl.com/test2.jpg&lt;/img&gt; &lt;title&gt;Sample Title #2&lt;/title&gt; &lt;text&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy&lt;/text&gt; &lt;/Slice&gt; &lt;/channel&gt; &lt;/rss&gt; </code></pre> <p>I get such a file for every view seperately, containing the sites content I want to show in the View.</p> <p>I tried some tutorials for xml parsing and found a way parsing my files and show it up in a TableView. It works fine, but when I try to implement the files in my Project, there are several problems using the delegate.</p> <p>I allready have a Delegate in my Project, managing the Navigations. Now I have a second Delegate, managing the XML Parser, but I still don't know how to make the second delegate work in my View.</p> <p>Every tutorial I found uses the Projects Delegate, but what if I allready have a Delegate and just want to add the XML Parser thing in my Project.</p> <p>I'm getting crazy of hacking keywords in Google, without finding anything related to my problem. This is my call for help. =D</p> <p>My Question: Is there any simple way to add an dynamic xml parser to my project, that gives me an array with my contents back, as I send the URL to the Parser? I just want to define the URL in my ViewController and get the Content from the XML.</p> <p>Hope u understand my Problem. I would appreciate every answer that could help me with this.</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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