The element 'instructors' is used but not declared in the DT

wxdqz

New Member
instance file

<?xml version="1.0" encoding="iso-8859-1"?>
<instructors
xmlns="http://www.myhome.com/instructors"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.myhome.com/instructors instructor.xsd">
<instructor>
<first>Weston</first>
<middle>Philip</middle>
<last>Marsh</last>
</instructor>
</instructors>


schema

<?xml version="1.0" encoding="iso-8859-1"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:lcsInstructors="http://www.myhome.com/instructors"
targetNamespace="http://www.myhome.com/instructors"
elementFormDefault="qualified">

<element name="instructors">
<complexType>
<sequence minOccurs="0" maxOccurs="unbounded">
<element name="instructor">
<complexType>
<element name="first" type="string" />
<element name="middle" type="string" />
<element name="last" type="string" />
</complexType>
</element>
</sequence>
</complexType>
</element>

</schema>


While validating the above with Topologi Schematron Validator (<!-- m --><a class="postlink" href="http://www.topologi.com/products/validator/index.html">http://www.topologi.com/products/validator/index.html</a><!-- m -->) I keep getting:

The element 'instructors' is used but not declared in the DTD/Schema.

Can anyone see my problem, if not would anyone be willing to run these files against a different validator?

Thanks in advance.
 
Back
Top