Пожалуйста скажите мне предложение, где исправить ... я перепробовала много, но не мог проверить на http://xmlvalidator.new-studio.org/ мой XML являетсяне может проверить мой XML против XSD
<?xml version="1.0" standalone="yes"?>
<timeofownership>
<user name="Sana Smith">
<location type="Appartment">
<articles>
<pid>AA</pid>
<product>Laptop</product>
<OwnFor>30 Days 3 Months 4 Years</OwnFor>
</articles>
</location>
</user>
<user name="Rooney Mara">
<location type="House">
<articles>
<pid>DD</pid>
<product>iPhone</product>
<OwnFor>10 Days 4 Months 1 Years</OwnFor>
</articles>
</location>
</user>
<user name="Rooney Mara">
<location type="House">
<articles>
<pid>TT</pid>
<product>iPad</product>
<OwnFor>10 Days 4 Months 0 Years</OwnFor>
</articles>
</location>
</user>
<user name="Sana Smith">
<location type="House">
<articles>
<pid>BB</pid>
<product>Desktop</product>
<OwnFor>5 Days 3 Months 3 Years</OwnFor>
</articles>
</location>
</user>
<user name="Peter Parker">
<location type="House">
<articles>
<pid>CC</pid>
<product>Fridge</product>
<OwnFor>30 Days 7 Months 0 Years</OwnFor>
</articles>
</location>
</user>
<user name="Mia Chu">
<location type="Appartment">
<articles>
<pid>ZZ</pid>
<product>PS3</product>
<OwnFor>30 Days 2 Months 0 Years</OwnFor>
</articles>
</location>
</user>
</timeofownership>
И схемы XSD IS-
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="timeofownership" >
<xs:complexType>
<xs:sequence>
<xs:element name="user" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:element name="location">
<xs:complexType>
<xs:element name="articles">
<xs:complexType>
<xs:sequence>
<xs:element name="pid" type="xs:string"/>
<xs:element name="product" type="xs:string"/>
<xs:element name="OwnFor" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:attribute name="type" type="xs.string"/>
</xs:complexType>
</xs:element>
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Просьба дать мне указание для этого. спасибо в ожидании.
Что такое сообщение об ошибке? –
Является ли это опечаткой в вашем атрибуте 'type':' type = "xs.string" '? (вместо 'xs: string') – Filburt
ошибка is-" Строка 1 Столбец 72: cvc-elt.1: Не удается найти объявление элемента «timeofownership» ». –