Скажите, пожалуйста в чём ошибка.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="timeTable">
<xs:complexType>
<xs:sequence>
<xs:element name="offices">
<xs:complexType>
<xs:sequence>
<xs:element name="office" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string" />
<xs:element name="address" type="xs:string" />
</xs:sequence>
<xs:attribute name="code" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="lesson" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="date" type="xs:date" />
<xs:element name="time" type="xs:time" />
</xs:sequence>
<xs:attribute name="no" type="xs:ID" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<timeTable
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="lab-3-2.xsd">
>
<offices>
<office code="БК">
<name>Комплекс "Бакунинский"</name>
<address>ул. Бакунинская, 71</address>
</office>
<office code="РА">
<name>Комплекс "Радио"</name>
<address>ул. Радио, д. 24</address>
</office>
</offices>
<lesson no="id1">
<date>2013-07-06</date>
<time>18:30:00</time>
</lesson>
<lesson no="id2">
<date>2013-07-10</date>
<time>18:30:00</time>
</lesson>
<lesson no="id3">
<date>2013-07-11</date>
<time>18:30:00</time>
</lesson>
</timeTable>
Выдает вот
Validation of current file using XML schema:
ERROR: Element 'timeTable': Character content other than whitespace is not allowed because the content type is 'element-only'.