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 to get errors? #240

Open
GFdevelop opened this issue Jun 5, 2020 · 0 comments
Open

How to get errors? #240

GFdevelop opened this issue Jun 5, 2020 · 0 comments

Comments

@GFdevelop
Copy link

How can I get errors when elements are not valid? ex:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<MYTAG>
  <One Id="one">
    <Valid1>
    </Valid1>
    <Valid2>
    </Valid2>
    <Invalid3>
    </Invalid3>
  </One>
</MYTAG>

jsonix ignore Invalid3 but I need to known that xml is invalid.
With ajv I have validate(unmarshalled) always true because Invalid3 is not in the object...how todo?

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