Netbeans:为 XML 生成 DTD

发布于 2024-11-30 16:14:35 字数 64 浏览 6 评论 0原文

Netbeans 是否有任何插件解决方案可以从 XML 文件创建 DTD (和/或通过 DTD 验证 XML)?

Is there any plugin solution to Netbeans to create DTD from XML files
(and/or validating XML by DTD) ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

微凉 2024-12-07 16:14:35

要在 NetBeans 中生成 DTD,请右键单击“文件”或“项目”视图中的 XML 文件,然后选择“生成 DTD...”,这将为所选 XML 文件生成 DTD。我不知道如何生成多个 XML 文件。您需要将(一些)生成的 DTD 文件合并为一个。

To generate a DTD in NetBeans right-click on an XML file in the Files or Project view and select 'Generate DTD...' This will generate a DTD for the selected XML file. I don't know a way to generate for multiple XML files. You will need to merge (some of the) generated DTD files into one.

月亮是我掰弯的 2024-12-07 16:14:35

您可以通过 Tools --> 将 DTD 添加到 Netbeans DTD 和 XML Schemas 对话框,如所解释的 在此博客中

我还没有看到一个插件可以从 Netbeans 的 XML 示例数据(重新)创建 DTD,我总是使用 Altova XMLSpy 适合此类工作。但 XMLSpy 不是免费的...

You can add DTD's to Netbeans via the Tools --> DTDs and XML Schemas dialog, like explained in this blog.

I haven't seen a plugin that (re)creates a DTD from XML sample data for Netbeans yet, I always used Altova XMLSpy for that kind of work. But XMLSpy is not free...

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