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

Error thrown when decoding multiple attributes #241

Open
Joebayld opened this issue Jun 18, 2022 · 3 comments
Open

Error thrown when decoding multiple attributes #241

Joebayld opened this issue Jun 18, 2022 · 3 comments

Comments

@Joebayld
Copy link

Does this library support multiple attributes?

Decoding something like this throws an error.

<MyObject>
    <Item id="1" value="ok">Hello</Item>
    <Item id="2" name=”not-ok”>Goodbye</Item>
</MyObject>

The error thrown is "Error Domain=NSXMLParserErrorDomain Code=111 "(null)""

Any ideas?

@SwapnilNighot
Copy link

did you manage to resolve this issue ? I am also facing the same issue.

@Jason-Abbott
Copy link

FWIW, I thought I had this issue, to the point that I forked the project and began adding a test to find the problem. But the test passed—lots of attributes, all good. So I pasted my XML into the test and it failed.

It turned out I had an extraneous comma (,) between a couple elements.

With that sorted, my current project is parsing elements with dozens of attributes and child elements, no problem.

@Joannis
Copy link
Member

Joannis commented Nov 16, 2022

I'll leave this open for a bit for @SwapnilNighot . Let me know what the current status is. If it becomes stale for another month or so I'll close it.

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

4 participants