Я получаю следующее сообщение об ошибке:Не удалось прочитать документ схемы [XSD], потому что
Не удалось прочитать документ схемы «ofbiz.apache.org/dtds/widget-screen.xsd», потому что 1) не удалось найти документ ; 2) документ не может быть прочитан; 3) корневым элементом документа не является
<xsd:schema>
.
Я получил XML-файл следующим образом:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="ShippingAgreement">
<section>
<actions>
<set field="selectedMenuItem" value="facilityShipment"/>
<set field="selectedSubMenuItem" value="ShippingContract"/>
</actions>
<widgets>
<decorator-screen name="DelysCommonDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
</decorator-section>
</decorator-screen>
</widgets>
</section>
</screen>
</screens>
Почему я не могу проверить его против XSD-файла http://ofbiz.apache.org/dtds/widget-screen.xsd?
Вы должны обеспечить правильное обращение к ресурсу 'http: // ofbiz.apache.org/dtds/widget-screen.xsd'. – potame
Корневой элемент не . –