Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing XML with same keys but different attributes #47

Open
zigzagg16 opened this issue Aug 27, 2013 · 0 comments
Open

Parsing XML with same keys but different attributes #47

zigzagg16 opened this issue Aug 27, 2013 · 0 comments

Comments

@zigzagg16
Copy link

Hi all,

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

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

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 !
Arnaud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant