Parsing XML with same keys but different attributes #47

arn00s opened this Issue Aug 27, 2013 · 0 comments


None yet
1 participant

arn00s commented Aug 27, 2013

Hi all,

I'm parsing an RSS feed that looks like this for the items :

    <ns:zone lang="fr">Centre</ns:zone>
    <ns:zone lang="de">Zentrum</ns:zone>

if I make this :

NSArray* items = [[rss child:@"channel"] children:@"item"];
for (RXMLElement *e in items) {

I only get the first item with attribute lang ="fr".

What should I do to have the value of the lang="de" ?
Any idea ? (PS : I'm not the owner of the RSS, i can't change it)

Thanks a lot !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment