How to marshal without a namespace?

Check your package-info.java (in the package where your jaxb-annotated classes are). There is the namespace attribute of @XmlSchema there.

Also, there is a namespace attribute in the @XmlRootElement annotation.

Leave a Comment