Skip to content

How to get errors? #240

@GFdevelop

Description

@GFdevelop

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions