I have a fairly large repetitive XML to create using JAXB. Storing the whole object in the memory then do the marshaling takes too much memory. Essentially, my XML looks lik
Check your package-info.java (in the package where your jaxb-annotated classes are). There is the namespace attribute of @XmlSchema there.
package-info.java
namespace
@XmlSchema
Also, there is a namespace attribute in the @XmlRootElement annotation.
@XmlRootElement