/ Published in: Objective C
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
// Define the XML Document
NSXMLDocument* doc = [[NSXMLDocument alloc] initWithXMLString:[NSString stringWithContentsOfFile:@"/folder/with/sample.xml"]];
// Create the arrays here
[objects addObject:[xmlElement stringValue]];
[descriptions addObject:[xmlElement stringValue]];
[doc release];
[objects release];
[descriptions release];
URL: http://cocoadev.com/forums/comments.php?DiscussionID=163
Comments
 Subscribe to comments
                    Subscribe to comments
                
                