OO Objective-C design with XML parsing
- by brainfsck
Hi,
I need to parse an XML record that represents a QuizQuestion. The "type" attribute tells the type of question. I then need to create an appropriate subclass of QuizQuestion based on the question type. The following code works ([auto]release statements omitted for clarity):
QuizQuestion *question = [[QuizQuestion alloc] initWithXMLString:xml];…