XML 编辑器,具有基于 XML 模式的智能感知/自动完成功能

发布于 2024-10-06 02:06:45 字数 1001 浏览 0 评论 0原文

我正在寻找一个可以提供基于 XML 模式的自动完成和验证的 XML 编辑器。目标平台是 Linux,Win/OSX 支持是理想的但可选的。

这个问题我知道Visual Studio 中支持此功能。还有一些商业 XML 编辑器(oXygen、Liquid XML studio)支持此功能。我个人不介意付费应用程序,但在这种情况下,我希望向一组用户推荐编辑器,并要求他们为应用程序付费不会得到很好的接受。

有什么建议吗?

ps 我快速尝试使用 Komodo Edit,但无法根据自定义模式自动完成它。任何有关使其正常工作的提示也会有所帮助。

(已解决)评论:

EclipseEclipse XML 编辑器和工具 插件结合使用就像一个魅力。该解决方案的另一个好处是可以在所有目标平台上工作。感谢@xcut

SU 上的这个答案 指出 Eclipse 无需插件即可做到这一点,但我无法复制该声明。

至于我尝试使用Komodo Edit,如果创建并注册 XML 目录。然而,我无法让它与 XML 模式一起使用,并且 ActiveState 的所有官方文档都专门提到了 DTD 和 RelaxNG。

I'm looking for an XML editor that can provide auto completion and validation based on an XML schema. The target platform is Linux, with Win/OSX support desirable but optional.

From this question I'm aware that this is supported in Visual Studio. There are also several commercial XML Editors (oXygen, Liquid XML studio) that support this feature. I personally don't mind paid apps, but for this instance I'm looking to recommend the editor to a group of users, and requesting that they pay for an app will not go down well.

Any suggestions?

p.s. I had a quick stab at using Komodo Edit but could not get it to autocomplete based on a custom schema. Any tips on getting this working would help too.

(solved) comments:

Using Eclipse with the Eclipse XML Editors and Tools plugin works like a charm. This solution has the added bonus of working on all target platforms. Thanks @xcut.

This answer on SU states that Eclipse can do so without plugins but I could not replicate the claim.

As for my attempts at using Komodo Edit, it is apparently possible to do so if one creates and registers an XML catalog. However I could not get it working with XML schemas and all official documents from ActiveState specifically mentions DTD and RelaxNG only.

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

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

发布评论

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

评论(3

青萝楚歌 2024-10-13 02:06:45

尝试安装 eclipse Web Tools 的 eclipse。据我所知,该编辑器具有自动完成功能。

当然,完整的 eclipse 安装可能有点矫枉过正......

Try eclipse with eclipse Web Tools installed. As far as I know, that editor has auto-complete.

Of course, a full eclipse install might be overkill...

说谎友 2024-10-13 02:06:45

XAmple XML Editor 项目引入了一个基于 java Swing 的 XML 编辑器,它分析给定的架构,然后生成文档- 特定的图形用户界面。与其他 XML 编辑器不同,XAmple XML 编辑器 GUI 不仅公开 XML 文档的树表示,而且公开 XML 文档和相应 XML 架构的逻辑组合。XML 编辑器的用户界面具有高度逻辑性。为了能够准备非常复杂的有效 XML 文档,用户不需要熟悉 XML 和 XML 模式语言,也不需要了解有关文档结构要求的任何先验知识。”

我已经尝试过,甚至我的非技术老板也喜欢它。

"XAmple XML Editor project introduces a java Swing based XML editor that analyzes a given schema and then generates a document-specific graphical user interface. Unlike other XML editors, the XAmple XML editor GUI exposes not just a tree representation of the XML document but rather a logical combination of the XML document and respective XML Schema. The user interface of the XML editor is highly logical and intuitively comprehensible. To be able to prepare valid XML documents of significant complexity, a user is not required to be familiar with XML and XML Schema languages and to have any a-priori knowledge about the documents structural requirements."

I've tried it, and even my non-technical boss likes it.

平定天下 2024-10-13 02:06:45

IntelliJ Idea Community Edition 附带了一个很好的 XML 编辑器(默认启用)。它支持基于提供的模式的自动完成。不幸的是它既是IDE又是Eclipse,因此很难让商业用户使用它。

您还可以使用 Ctrl-Q 查看嵌入到 XML 架构中的 xs:documentation。

IntelliJ Idea Community Edition comes with a good XML editor (enabled by default). It supports auto-complete based on the provided schema. Unfortunately it is an IDE as well as Eclipse, so it will be hard to make business users to use it.

Also you can use Ctrl-Q to view xs:documentation embedded into XML Schema.

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