javaxmllocalizationxsdjaxp

I18n of XSD validation error messages in Java


I perform XSD XML validation using the following classes:

import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import javax.xml.validation.Validator;

The problem is that XSD error messages returned by validator are always in English language. Is it possible to call locale-aware validation with JAXP API?


Solution

  • Apparently there's no way to achieve what I want.