Skip to main content
Support

KB Article #177475

XML Validator not detecting the XML schema

Problem

-- XML Validator is not detecting the XML schema that has to be used


In order to validate an XML document after a certain schema, the IntegratorEnabler Help indicates that the schema must be placed in $CORE_LOCAL\resources. However, this is not enough for Integrator in order to find the schema.

Resolution

- The only fix needed is to change the root element of the input XML file to indicate schema to be used for validation. If a tool like XMLSpy will validate the XML file with the schema in same folder, then the Integrator will validate it too with the schema placed in $CORE_LOCAL/resources folder.

Here is an example of how the input file should be (correctly) formatted:


The original input file had the following tag in the beginning:

<tep:Informe xmlns:tep="URL_of_schema_location">


This tag has to be configures as follows:

<tep:Informe xmlns:tep="URL_of_schema_location" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="URL_of_schema_location name_of_schema.xsd">


The file cannot be checked by Integrator until these parameters are added to the root element.