Trouble Validating data

admin

Administrator
Staff member
Hi all,

I am using ALTOVA XMLSpy.

The start of my XML file looks like this:

xsi:noNamespaceSchemaLocation="layout.xsd">

When I go to validate my XML file it give me error "This file is not
valid. The declaration or definition "char30Type" is not defined in
the schema with targetNamespace."

The layout.xsd included 22 related schemas. The first schema referenced in layout.xsd is simple.xsd

I have assigned the full pathnames in the my xml and layout.xsd but I still get the same error.
Then beginning of layout.xsd looks like this:

<?xml version="1.0"?> <xsd:schema xmlns:xsd="<http://www.w3.org/2001/XMLSchema>">
<!-- @@@@@@ Include Related Schemas @@@@@@ Version# 2.0 -->
<xsd:include schemaLocation="simple.xsd"/>
<xsd:include schemaLocation="complex.xsd"/>
<xsd:include schemaLocation="t4.xsd"/>
<xsd:include schemaLocation="t4a.xsd"/>

The beginning of Simple.xml looks like this:
<?xml version="1.0"?> <xsd:schema xmlns:xsd="<http://www.w3.org/2001/XMLSchema>">
<!-- @@@@@ Definition of SimpleTypes @@@@@@@@ Version# 2.0 -->
Char30Type is Definined with in this
< xsd:simpleType name="char30Type">
<xsd:restriction base="xsd:string">
<xsd:minLength value=http://www.webdeveloper.com/forum/archive/index.php/"1"/>
<xsd:maxLength value="30"/>
</xsd:restriction> </xsd:simpleType>

Here is the full schemas:
<http://www.cra-arc.gc.ca/eservices/magmedia/schema-e.html>


Does anyone have any idea as to why I am getting this message and what I can do to correct it.
 
Top