jsonix icon indicating copy to clipboard operation
jsonix copied to clipboard

How to get errors?

Open GFdevelop opened this issue 5 years ago • 0 comments

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?

GFdevelop avatar Jun 05 '20 18:06 GFdevelop