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?
Asked
Active
Viewed 374 times
2 Answers
2
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.
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
UPDATE
The Dali team is adding this support in the upcoming Juno release of Eclipse. You can try this out today:

bdoughan
- 147,609
- 23
- 300
- 400
1
Dali added this to Eclipse in the Juno release. You get content assist and validation on @XmlPath
annotations among others.
http://www.eclipse.org/webtools/releases/3.4.0/NewAndNoteworthy/jpt.php

Karen Butzke
- 1,442
- 12
- 18