JiBX 在 Eclipse 中绑定 DTD 架构

发布于 2024-08-22 06:28:37 字数 724 浏览 2 评论 0原文

我在绑定 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

初懵 2024-08-29 06:28:37

我补充道:

<!DOCTYPE beans PUBLIC "-//JIBX//DTD BEAN 2.0//EN" "http://jibx.cvs.sourceforge.net/viewvc/*checkout*/jibx/core/docs/binding.dtd">

在 XML 绑定文档之上,它可以工作。

I added:

<!DOCTYPE beans PUBLIC "-//JIBX//DTD BEAN 2.0//EN" "http://jibx.cvs.sourceforge.net/viewvc/*checkout*/jibx/core/docs/binding.dtd">

On top of XML binding document and it works.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文