The tool schemagen.exe generates xsd definitions from classes, e.g. the result is
<xs:schema elementFormDefault="qualified" version="1.0" targetNamespace="aa/bb" xmlns:a="aa/bbb" xmlns:tns="aa/bb" xmlns:xs="http://www.w3.org/2001/XMLSchema">
when I put in package-info.class on the package level:
@XmlSchema(namespace = "aa/bb",
elementFormDefault = XmlNsForm.QUALIFIED,
xmlns = {@XmlNs(prefix="a", namespaceURI="aa/bb"),
@XmlNs(prefix="xs",namespaceURI="http://www.w3.org/2001/XMLSchema")})
package aa.bb;
import javax.xml.bind.annotation.*;
The point is that now two prefixes exist: my preferred short one: a and the schemagen.exe automatically generated tns prefix. That is a pitty, because all generated types use the tns prefix, I would be glad if my own prefix was used in the generation without the tns one. Waht should I do?