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

How parse the tags using AEXML #54

Closed
YuvarajManic opened this issue Oct 6, 2015 · 1 comment
Closed

How parse the tags using AEXML #54

YuvarajManic opened this issue Oct 6, 2015 · 1 comment

Comments

@YuvarajManic
Copy link

Hi Team,
Good Day!

Am familiar in XML Parsing using NSXMLParser in Objective-C. Now, am working in Swift I can use the NSXMLParser to parse the XML Response but, I have got suggestions to use third party framework (Library) to parse the xml content easily. I googled and found "AEXML" framework for SWIFT programming. I got confused to access the tags from "AEXMLElement".

I have attached the sample response and my sample code for your reference.

I want to parse the main tag "item" and its sub tags "title", "link", "description", "author", "pubDate". How can I handle this?

Can you please help me to parse the xml files like this?
Looking forward your help. Thank you.

Warm Regards,
Yuvaraj M

screen shot 2015-10-06 at 7 15 38 pm
screen shot 2015-10-06 at 7 15 51 pm

@tadija
Copy link
Owner

tadija commented Oct 31, 2015

Hello,

in your case each item is AEXMLElement which contains other elements which you can access like item["title"].value or item["link"].value.

@tadija tadija closed this as completed Oct 31, 2015
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

2 participants