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

Empty elements throw RuntimeException::unexpectedTag #36

Closed
evoluted opened this issue Apr 1, 2015 · 0 comments
Closed

Empty elements throw RuntimeException::unexpectedTag #36

evoluted opened this issue Apr 1, 2015 · 0 comments

Comments

@evoluted
Copy link

evoluted commented Apr 1, 2015

Currently working with an API that is returning some values like

<member>
    <name>msg</name>
    <value></value>
</member>

and the parser is throwing the unexpectedTag exception. Surely this just wants to parse that element as an empty value rather then throwing an unexpected tag?

Full exception message is "Invalid XML. Expected one of "array", "#text", "string", "struct", "int", "biginteger", "i8", "i4", "i2", "i1", "boolean", "double", "float", "bigdecimal", "dateTime.iso8601", "dateTime", "base64", "nil", "dom", got "value" on depth 9 (context: "")"

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