I made an XML with php and MYSQL, but when i try to parse it into iphone dont seems to work, since in the internet adress it look correctly...Here the XML:
<feed xmlns="http://74.53.32.202/~ltashiro/public/Servidor/">
<title>ServidorBaladasRSS</title>
<subtitle>Agenda</subtitle>
<Prog Id="1" Nome="Club" Desc="" Data="2011-11-01 00:00:00" Dia="2"/>
<Prog Id="1" Nome="Club" Desc="" Data="2011-11-01 00:00:00" Dia="3"/>
<Prog Id="1" Nome="Club" Desc="" Data="2011-11-01 00:00:00" Dia="4"/>
<Prog Id="2" Nome="Test" Desc="" Data="2011-11-01 00:00:00" Dia="1"/>
<Prog Id="2" Nome="Test" Desc="" Data="2011-11-01 00:00:00" Dia="2"/>
<Prog Id="2" Nome="Test" Desc="" Data="2011-11-01 00:00:00" Dia="3"/>
<Prog Id="2" Nome="Test" Desc="" Data="2011-11-01 00:00:00" Dia="4"/>
</feed>
The Objective-C:
-(void) parser:(NSXMLParser *) parser didStartElement:(NSString *)elementName namespaceURI:(NSString *) nameSpaceURI qualifiedName:(NSString *) qName attributes:(NSDictionary *) attributeDict
{
NSLog(@"%@",elementName);
}
I need the XML to be in that format,when i Log the elementName it logs only the feed,title and subtitle, the rest of the XML looks like dont exists...
something wrong with the XML formatting?