I am having an issue with the XML that I am working with currently.
Error: Ln 152 Col 13 - cvc-complex-type.2.4.b: The content of element 'programs' is not complete. One of '{program}' is expected. 1 Errors (RESOLVED)
Error: cvc-elt.l: Cannot find the declaration of element 'xs:schema'.
I would want to know if anyone else has been through this error and found a fix of it, thanks.
EDIT: I had to edit the post because I am working with the same file, and it confused one of the members when I posted xml and xsd file. I think I should just post the file that I am having issues with, still learning SO, sorry.
XSD:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="CBC_programs">
<xs:complexType>
<xs:sequence>
<xs:element name="programs" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="programs">
<xs:complexType>
<xs:sequence>
<xs:element name="Business_Programs" />
<xs:element name="Law_Programs_in_Ontario" />
<xs:element name="Information_Technology_Programs" />
<xs:element name="Engineering_Programs" />
<xs:element name="Marketing_Programs" />
<xs:element name="Health_Administration_Programs" />
<xs:element name="Community_Service_and_Child_Care_Programs" />
<xs:element ref="program" minOccurs="1" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="program">
<xs:complexType>
<xs:sequence>
<xs:element name="name" />
<xs:element name="length" />
<xs:element name="tuition" />
<xs:element name="description" />
</xs:sequence>
<xs:attribute name="program_id" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>