That infomration comes from the package level annotation @XmlSchema
which can be found in the package-info
class. See below for an example.
package-info
@XmlSchema(
namespace = "http://www.acme.com/deliverylo",
elementFormDefault = XmlNsForm.QUALIFIED)
package example;
import javax.xml.bind.annotation.XmlNsForm;
import javax.xml.bind.annotation.XmlSchema;
Sample XML
elementFormDefault
specifies which elements should be namespace qualified (true = all, false = only global elements), and targetNamespace
defines what the namespace is.
<foo xmlns="http://www.acme.com/deliverylog">
<bar>Hello World</bar>
</foo>
For More Information