- Place the
XmlXsdValidatorPlugin.jar
into theplugins/jars
directory - Configure the validator in the
protocol.xml
(see example) - Put your
example.xsd
intoplugins/config/xml-xsd-validator-plugin/
<?xml version="1.0" encoding="UTF-8"?>
<protocol>
<tasks>
...
<MessageValidatorHook>
<task name="/test/+/example">
<plugin name="xml-xsd-validator-plugin">
<schema>example.xsd</schema>
</plugin>
</task>
...
</MessageValidatorHook>
</tasks>
...
</protocol>
<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>Tove</to>
<from>Jani</from>
</note>