尝试解析此架构定义:
<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>
与 XJC 一起给我带来了这个错误:
src-resolve: Cannot resolve the name 'entry' to a(n) 'element declaration' component.
我不知道这里有什么问题。
编辑:在我阅读后自己解决了这个问题: http: //alsdias.blogspot.com/2012/11/cannot-resolve-name-to-type-definition.html
我更改了“GameSystemManifest”的定义,以便在其中定义“入口”。