So I am beginning with XML and Schemas and I ran across this today and I have not been able to figure it out.
I am getting and error that says,
Ln 5 Col 2 : Cannot find the declaration of element 'assignments'.
I believe I have declared the element, but perhaps I am missing something and have not.
This is my XML file:
<?xml version="1.0" encoding="UTF-8"?>
<assignments
    xmlns="http://www.w3.org/2001/XMLSchema-instance"
    SchemaLocation="A3.xsd"
>
    <assignment id="a1">
     <name>Schemas</name>
     <page>110</page>
    </assignment>
    <assignment id="a2">
     <name>Namespaces</name>
     <page>258</page>
     <files>names.xml</files>
     <files>names.dtd</files>
    </assignment>
    <assignment id="a3">
     <name>RELAX NG</name>
     <page>305</page>
     <files>account.xml</files>
     <files>customers.xml</files>
     <files>finance.xsd</files>
    </assignment>
</assignments>
This is my Schema file:
<?xml version="1.0" encoding="UTF-8"?>
<schema 
    xmlns="http://www.w3.org/2001/XMLSchema" 
    xmlns:target="http://www.levijackson.net/web340/ns" 
    targetNamespace="http://www.levijackson.net/web340/ns" elementFormDefault="qualified"
>
<element name="assignments" type="target:TypeAssignments"></element>
<complexType name="TypeAssignments">
    <sequence>
     <element name="assignment" type="target:assignmentInfo"></element>
    </sequence>
    <attribute name="id" type="string" use="required"/>
</complexType>
<complexType name="assignmentInfo">
    <sequence>
      <element name="name" type="string"></element>
      <element name="page" type="target:TypePage"></element>
      <element name="file" type="target:TypeFile" minOccurs="0" maxOccurs="unbounded"></element>
    </sequence>
</complexType>
<simpleType name="TypePage">
    <restriction base="integer">
     <minInclusive value="50" />
     <maxInclusive value="498" />
    </restriction>
</simpleType>
<simpleType name="TypeFile">
    <restriction base="string">
     <enumeration value=".xml" />
     <enumeration value=".dtd" />
     <enumeration value=".xsd" />
    </restriction>
</simpleType>
</schema>
As I am still learning, feel free to point out any other mistakes I may have made not related to the problem.
Thanks
Levi