JiBX 在 Eclipse 中绑定 DTD 架构
我在绑定 xml 文件时收到警告:
No grammar constraints (DTD or XML schema) detected for the document.
我已按照此处答案中的说明进行操作: JiBX:如何在代码中继续使用接口?(答案不被接受)。但现在我在绑定 xml 文件时出现错误:
Referenced file contains errors (file:/C:/Amplio/LiveCliq/Work/core/src/main/resources/config/rest/
mappings/binding.dtd)。有关详细信息,请右键单击问题视图中的消息,然后 选择“显示详细信息...”
,详细信息是:
The markup in the document preceding the root element must be well-formed. line 20
我不熟悉 DTD 架构,所以我不知道问题是什么。有人找到解决办法了吗?
而且 - 我不想关闭 XML 文件中的验证,我想在绑定文件中使用此功能(主要用于代码辅助和验证)。
I have warnings in binding xml files:
No grammar constraints (DTD or XML schema) detected for the document.
I have done as is written in the answer here: JiBX: How do I keep using interfaces in my code? (answer which is not accepted). But now I have an error in binding xml file:
Referenced file contains errors (file:/C:/Amplio/LiveCliq/Work/core/src/main/resources/config/rest/
mappings/binding.dtd). For more information, right click on the message in the Problems View and
select "Show Details..."
And the details are:
The markup in the document preceding the root element must be well-formed. line 20
I am not familiar with DTD schemas, so I don't know what is the problem. Did anybody found the solution?
And - I do not want to turn off validation in XML files, I would like to have this in binding files (mainly for code assist and validation).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我补充道:
在 XML 绑定文档之上,它可以工作。
I added:
On top of XML binding document and it works.