How to validate xml against schema such that it does not accept any other encoding except UTF-8 in Apache Camel ?
Issue
-
We have two Questions regarding encoding.
- In router, consuming xml message with encoding=
Cp1252and validating this against xsd schema which has encoding asUTF-8using camel validator component. The validator component is not validating the encoding=UTF-8, its acceptingCp1252, its not throwing any error message likeunsupportedencodingformat.
- In router, consuming xml message with encoding=
-
How to validate xml against schema such that it should not accept any other encoding except UTF-8?
-
In router,consuming xml message with encoding=UTF-8, and in one of the element we have data as non UTF-8 characters, in this case the non UTF-8 characters are replaced by "?". We am using validator component to validate against schema.
-
How to validate xml against schema so that it should not allow non UTF-8 chacters and throw error message?
Environment
- Red Hat JBoss Fuse
- 6.x
- Camel Validation Component
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
