Red Hat Training

A Red Hat training course is available for Red Hat Fuse

11.2. Message Validation

Here is a sample that depicts message validation.
Message Content:
<MyBook xmlns="example">
This is the associated XML Schema definition:
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns=""
        <element name="MyBook" type="example:MyBook"/>
        <complexType name="MyBook">
                <element name="Chapter1" type="string"/>
The XML content is still well-formed, but it has a Chapter2 element that is not declared as the child of MyBook element in the XML schema. Hence the content cannot be validated against the schema.