[英]Error generating code from FixML 5.0 SP2
I'm using the Fix standard as the source (file fixml-main-5-0-SP2.xsd). 我正在使用Fix标准作为源(文件fixml-main-5-0-SP2.xsd)。
I get the following error when trying to generate C# code using Liquid XML Data Binder: 尝试使用Liquid XML Data Binder生成C#代码时,出现以下错误:
"The namespace 'http://www.fixprotocol.org/FIXML-5-0-SP2/METADATA'
provided differs from the schema's targetNamespace
'http://www.fixprotocol.org/FIXML-5-0-SP2'."
What is wrong? 怎么了?
The FixML standard appears to contain a small error. FixML标准似乎包含一个小错误。
All the schemas contain the attribute xsi:schemaLocation="http://www.fixprotocol.org/FIXML-5-0-SP2/METADATA fixml-metadata-5-0-SP2.xsd" 所有模式都包含属性xsi:schemaLocation =“ http://www.fixprotocol.org/FIXML-5-0-SP2/METADATA fixml-metadata-5-0-SP2.xsd”
However the document "fixml-metadata-5-0-SP2.xsd" has a targetnamespace of " http://www.fixprotocol.org/FIXML-5-0-SP2 " not " http://www.fixprotocol.org/FIXML-5-0-SP2/METADATA " as stated in the schemaLocation. 但是,文档“ fixml-metadata-5-0-SP2.xsd”的目标名称空间为“ http://www.fixprotocol.org/FIXML-5-0-SP2 ”而非“ http://www.fixprotocol.org / FIXML-5-0-SP2 / METADATA ”,如schemaLocation中所述。
Changing the targetnamespace in the file "fixml-metadata-5-0-SP2.xsd" to " http://www.fixprotocol.org/FIXML-5-0-SP2/METADATA " resolves the issue. 将文件“ fixml-metadata-5-0-SP2.xsd”中的目标名称空间更改为“ http://www.fixprotocol.org/FIXML-5-0-SP2/METADATA ”可以解决此问题。
If you are in contact with the FixML team I would suggest you notify them of the change required. 如果您与FixML团队联系,建议您将所需的更改通知他们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.