是否有任何工具可以验证@XmlPath批注? [英] Is there any tool to validate @XmlPath annotations?
问题描述
是否有任何工具可以在编译时从Eclipse或IntelliJIdea Java框架或其他工具中验证MOXy JAXB在特定xml文件中使用的@XmlPath批注?
Is there any tool to validate @XmlPath annotations used from MOXy JAXB at a specific xml file at compile time from Eclipse or IntelliJIdea java framework or something else?
推荐答案
尚无相应的IDE工具.您可以使用 EclipseLink MOXy JAXBContext生成XML模式,然后使用它来进行验证XML文档.
There is no corresponding IDE tooling yet. You could use the EclipseLink MOXy JAXBContext to generate an XML schema and then use it to validate the XML document.
有关基于XPath的@XmlPath映射的更多信息,请参见:
For more information of XPath based mapping an @XmlPath see:
- http://bdoughan.blogspot.com/2010/07/xpath-based-mapping.html
- http://bdoughan.blogspot.com/2010/09/xpath-based-mapping-geocode-example.html
- http://bdoughan.blogspot.com/2011/03/map-to-element-based-on-attribute-value.html
更新
Dali 小组正在即将发布的Eclipse Juno版本.您今天可以尝试一下:
The Dali team is adding this support in the upcoming Juno release of Eclipse. You can try this out today:
这篇关于是否有任何工具可以验证@XmlPath批注?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!