Import SparxEnterpriseArchitect-XSD生成:在生成的引用中导入XSDschema引用
我正在使用SparxEnterpriseArchitectV10从XML模式图形模型生成XSD模式 基本上,我用complexType实体创建了两个不同的XSDschema:1主XSDshema:Import SparxEnterpriseArchitect-XSD生成:在生成的引用中导入XSDschema引用,import,xsd,enterprise-architect,Import,Xsd,Enterprise Architect,我正在使用SparxEnterpriseArchitectV10从XML模式图形模型生成XSD模式 基本上,我用complexType实体创建了两个不同的XSDschema:1主XSDshema: <xs:complexType name="EntitytXT"> <xs:annotation> <xs:documentation>This is the definition of an EntitytXT</xs:documen
<xs:complexType name="EntitytXT">
<xs:annotation>
<xs:documentation>This is the definition of an EntitytXT</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="element1" type="shared:StringXT" minOccurs="1" maxOccurs="1"/>
<xs:element name="element2" type="shared:StringXT" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
在我生成的结果XSD中存在
非常感谢。所以,差不多一天之后,事情变得相当明显 对于EA中不同XSDschema的实际导入过程,我没有找到任何具体的答案 问题是:您有两个XSDschema作为两个不同的包。确保将“共享”文件导入到主文件中(带有标签
<xs:simpleType name="StringXT">
<xs:restriction base="xs:string">
<xs:maxLength value="5" />
</xs:restriction>
</xs:simpleType>`
<xs:import namespace="http://xxxx/shared" schemaLocation="http:/xx/xx/common/shared.xsd" />