Using XML Schema for code autocomplete in my XML editor

前端 未结 5 1658
猫巷女王i
猫巷女王i 2021-01-12 03:22

I have XSD file (for example) http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd and I would like to use it for adding code autocomplete in my xml editor (I prefer Eclipse bu

5条回答
  •  感情败类
    2021-01-12 03:48

    I think you can do it by defining an XML namespace with your XML Schema Definition. Then when you start a tag with that namespace you should get suggestions based on the types of elements that can be used in that situation, according to the XML Schema Definition.

提交回复
热议问题