Select only certain XML elements post parsing
Xcode using NSXMLParser: I have an XML file with a number of sports teams schedules in it. I'm able to pull in that file and display all sports and child elements in one table view, and then show the appropriate detail when clicked. However, I would like to create a categories for each sport (ex. Men's Basketball) and then have the resulting view display only that team from the XML file. I know I could just split up each sport into it's one XML file and parse it, but would rather not.
So, my question would be "How do I pull in just certain results from an XML file into my tableview?"
if message=@"Mens Basketball" then select all in xml file where <title> = @"Mens Basketball". and show those results (including child elements) in the uitableview.
|