2

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?

bdoughan
  • 147,609
  • 23
  • 300
  • 400
curious
  • 1,524
  • 6
  • 21
  • 45

2 Answers2

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:

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