namespace information in marshaled XML:
What annotations are available to affect namespaces when marshaling to XML? For example, I want to have the xmlns and xsi:schemaLocation information automatically written in my XML instance documents when marshaling.
On the schema side, when generating the schema with the schemagen tool, @XmlType(namespace=...) (or a package level @XmlSchema) nicely causes "targetNamespace" information to be put into the resulting schema.
However, on the instance side, I am unable to cause namespace information to be outputed when marshaling. (I've seen the jaxb.schemaLocation property that JAXB providers are apparently supposed to support, however, I've haven't been able to make this work (with EA2)).
How do people normally put xmlns and xsi:schemaLocation into their instance documents?