0
다음 내 XSD가 될 때 :CVC-elt.1.a : 요소의 선언을 '...'찾을 수는
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="AppRegisterConfig">
<xs:sequence>
<xs:element name="restServiceUrl" type="xs:string" />
<xs:element name="timeout" type="xs:int" />
<xs:element name="attempts" type="xs:int" />
</xs:sequence>
</xs:complexType>
내 XML은 다음과 같습니다 :
<?xml version="1.0" encoding="UTF-8"?>
<appregister-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="appregister-config.xsd">
<restServiceUrl><url>url 1</url></restServiceUrl>
<timeout>15000</timeout>
<attempts>5</attempts>
</appregister-config>
내가 놓칠지도 모르는 어떤 생각?
나는 이것을 시도했다. - 요소 시작 태그 \t - s4s-att-not-allowed : 'type'속성은 'complexType'요소에 표시 될 수 없습니다. 호출하기 전에이 오류가 표시됩니다. –
'type'속성을 가진 xs : complexType 요소가 있다는 것을 말하고 있습니다. 거기 있니? –
당신이 제안한 줄을 넣으면 새로운 오류가 발생했습니다. 네, 또 다른 요소 집합으로 구성된 complexType의 요소가 있습니다. 내 해당 클래스에 이러한 요소를 가져 오는 메서드가 있습니다. 하지만 내 XML은 xsd에 동의하지 않습니다. 도와주세요. –