Schema Validation Filter
You can use the Schema Validation Filter to validate the result of a Data Provider against an XML Schema Definition. The Schema Validation Filter Data Provider takes two parameters, in the schema parameter you supply the path to the XSD. If you wish you can use the disable parameter to disable the schema validation filter. The disable parameter usually points to a web.xml context parameter, this way you can configure the schema validation filter to be turned on or off by a deployment plan.Â
Data Control
<AdapterDataControl id="HrData" FactoryClass="oracle.adf.model.adapter.DataControlFactoryImpl" ImplDef="org.adfemg.datacontrol.xml.DataControlDefinition" SupportsTransactions="false" SupportsSortCollection="false" SupportsResetState="false" SupportsRangesize="false" SupportsFindMode="false" SupportsUpdates="false" Definition="org.adfemg.xmldc.demo.view.HrData" BeanClass="org.adfemg.xmldc.demo.view.HrData" xmlns="http://xmlns.oracle.com/adfm/datacontrol"> <Source> <definition xmlns="http://adfemg.org/adfm/datacontrol/configuration" dc-operation="getXML" schema="HR.xsd" schema-root="DepartmentList"> <data-provider class="org.adfemg.datacontrol.xml.provider.filter.SchemaValidationFilter"> <parameters> <parameter name="schema" value="HR.xsd"/> <parameter name="disable" value="${web.xml.param}"/> </parameters> <data-provider class="org.adfemg.datacontrol.xml.provider.data.ResourceDataProvider"> <parameters> <parameter name="resource" value="HRdata.xml"/> </parameters> </data-provider> </data-provider> </definition> </Source> </AdapterDataControl>