我尝试在 delphi 中使用 XMLMapper 导入一些有效的模式(用于 xmlspy 和氧气),但出现此错误
“错误通量如果:InfofileType 未知”。
我使用命名空间,这种类型是在另一个文件中定义的。
有没有办法解决这个问题?
(我也尝试使用 Delphi 2010 演示,但仍然无法正常工作)
<?xml version="1.0" encoding="UTF-8" ?>
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:if="http://www.gtest.fr/Apps/InfoFile" xmlns:ca="http://www.gtest.fr/Apps/CommandAnswer" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace="http://www.gtest.fr/Apps/InfoFile" schemaLocation="InfoFile.xsd" />
<xs:import namespace="http://www.gtest.fr/Apps/CommandAnswer" schemaLocation="CommandAnswer.xsd" />
- <xs:element name="ServerAnswer">
- <xs:annotation>
<xs:documentation>Reponse serveur socket</xs:documentation>
</xs:annotation>
- <xs:complexType>
- <xs:sequence>
<xs:element name="InfoFile" type="if:InfoFileType" />
<xs:element name="Command" type="ca:CommandAnswerType" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
在 QC 中报告:http: //qc.embarcadero.com/wc/qcmain.aspx ?d=80124