Próba przeanalizowania tej definicji schematu:
<xsd:element name="GameManifest" type="GameSystemManifest"/>
<xsd:complexType name="entry">
<xsd:sequence>
<xsd:element name="SystemName" type="xsd:string"></xsd:element>
<xsd:element name="FileLocation" type= "xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="GameSystemManifest">
<xsd:sequence>
<xsd:element ref="entry"/> <--Error message says problem line is is here.
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
z XJC sieci mnie ten błąd:
src-resolve: Cannot resolve the name "entry" to a(n) "element declaration" component.
Nie mam pojęcia, co tu jest nie tak.
Edycja: rozwiązał to sam po przeczytaniu tego: http://alsdias.blogspot.com/2012/11/cannot-resolve-name-to-type-definition.html
Zmieniłem definicję "GameSystemManifest", aby zdefiniować "wejście".
Odpowiedzi:
0 dla odpowiedzi № 1musisz zadeklarować element o nazwie entry. Masz zadeklarowany typ złożony, ale nie element.
Ogłosić:
<xsd:element name="entry" type="entry"/>