I'm trying to get my JAXB marshaller to use the provided schemaLocation without using
marshaller.setProperty(Marshaller.JAXB_SCHEMA_LOCATION, "some location");
I see that there is an option to provide a schema location in my package descriptor
@javax.xml.bind.annotation.XmlSchema(
namespace = "http://my.website.com/TheClass"
, elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED
, location = "http://my.website.com/TheClass TheClass.xsd"
)
package com.mypackage.beans;
but it won't print in the xml