I have an XSD which I have written like this: Now I generate the JAXB classes using CXF maven plugin. And i get a JAXB class like (used a decompiler for this): Now to get it out, I wrote a simple class that just takes a string and unmarshalls it: But that last line prints null. I was expecting it
Tag: xsd
How to perform schematron validation using Saxon java library command line tool?
Very basic question- I’ve a xml file and I want to validate it against a schematron file. How do I do it using Saxon command line? As per commandline reference I don’t see any option to specify schematron file. Answer After doing a lot of research, it seems that it isn’t really possible. We have to first generate xsl document
XML Schema to Java Classes with XJC
I am using xjc to generate Java classes from the XML schema and the following is an excerpt of the XSD. For the most part the generated classes are fine but for the above block I would get something like: with the following comment above it: I have placed a comment at the end of the two line in question.