doc: return correctly from xmlschema errors