Моя схема: ::
<xs:element name="data" type="dataType"/>
<xs:complexType name="testDataType">
<xs:simpleContent>
<xs:extension base="xs:integer">
<xs:attribute type="xs:integer" name="value" use="required">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minLength value="3"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="dataType">
<xs:sequence>
<xs:element type="testDataType" name="path" maxOccurs="unbounded" minOccurs="1"></xs:element>
</xs:sequence>
</xs:complexType>
Обязательный XML:
<data>
<path value="<only integer values>"/>
</data>
Пример ошибки:
<data>
<path value="sdfv"></path>
</data>
b) И не должно быть допустимых значенийв элементе «путь», например,
<data>
<path value="3">sdv</path>
</data>
Выше, например, следует из-за ошибки, так как он содержит «sdv» в теге пути
Как этого добиться.