简体   繁体   English

从FixML 5.0 SP2生成代码时出错

[英]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.

相关问题 下载代码可以在Windows 7中运行,但不能在XP SP2中运行吗? - Download code works in Windows 7 but not XP SP2? 在Windows Server 2008 SP2 64位上使用库时出错 - Error using the Library on a Windows Server 2008 SP2 64-bit C#Windows Form App(SQL Server Compact 3.5 SP2的私有部署)错误-停止工作 - C# Windows Form App (Private deployment of SQL Server Compact 3.5 SP2) Error - Stopped working SQL Server CE 3.5 SP2 .dbml创建失败,但没有错误消息 - SQL Server CE 3.5 SP2 .dbml creation failed, but no error message .net应用程序在win2003 x64 sp2环境上运行时遇到错误0xc000142 - .net application encountered error 0xc000142 when run on win2003 x64 sp2 enviroment ClickOnce无法在Windows Vista SP2上安装LocalDB 2012 - ClickOnce unable to install LocalDB 2012 on Windows Vista SP2 如何在Windows XP SP2的IIS中运行.aspx页 - How to run .aspx page in IIS on Windows XP SP2 .net-core 2.2 与 windows server 2008 sp2 兼容吗? - Is .net-core 2.2 compatible with windows server 2008 sp2? DispatcherTimer 在 Win 2k8 SP2 中的 Stop() 后继续触发 - DispatcherTimer Keeps Firing After Stop() in Win 2k8 SP2 SQL Server Compact 3.5 SP2 Edition的数据备份和还原? - Data Backup & Restore of SQL Server Compact 3.5 SP2 Edition?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM