내 .xsd 파일에
<meters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Meter.xsd">
....
</meters>
하지만 파서는 줄 끝에 치명적인 오류가 있다고 말합니다. 미만 기호에서. 오류는 다음과 같습니다.
Message: Fatal error encountered during schema scan
내 다음 오류는
<xs:simpleType name="ID.Type">
<restriction base="xs:String">
<xs:enumeration value="space2"/>
<xs:enumeration value="space1"/>
</xs:restriction>
</xs:simpleType>
닫는 제한 태그 끝에 오류가 있다고 표시됩니다. 오류는
Message: Expected end of tag 'restriction'
그래도 제한 개방 제한 태그를 닫았습니까? 구문은 제한 사항에 대한 w3Schools와 동일합니다.
두 번째 오류의 경우 열기 태그는 <restriction>
이고 닫기 태그는 </xs:restriction>
입니다. 두 태그는 서로 다른 namcespace에 있으므로 일치하지 않습니다.
열려있는 태그를로 변경하면 <xs:restriction>
문제가 해결됩니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다