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

Parser wrong from nsstring #16

Open
HTKT opened this issue Aug 26, 2014 · 1 comment
Open

Parser wrong from nsstring #16

HTKT opened this issue Aug 26, 2014 · 1 comment

Comments

@HTKT
Copy link

HTKT commented Aug 26, 2014

I added your lib to my source code. When I parser from the returned data from Server, everything is ok except one thing: There is a special Node, it returned an array type but original data from my server is string type.

This special node has format "< / NODENAME>". When parse this node, the dictionary return the array type for this node.

Can you please help me to fix this bug? Thanks so much.

@nicklockwood
Copy link
Owner

I'd have to see more of the XML to tell if this is a bug or not. If you have multiple nodes with the same name then XMLDictionary gathers them into an array. If you just want the first string in the array, you can get it by using the stringValueForKeyPath: method.

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