XML editor with intellisense/autocomplete based on XML Schema

孤街浪徒 提交于 2019-12-22 03:44:35

问题


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.


回答1:


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...




回答2:


"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.




回答3:


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.



来源:https://stackoverflow.com/questions/4348081/xml-editor-with-intellisense-autocomplete-based-on-xml-schema

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!