I have an ATOM-XML view of my data that is returned through the Spring MVC web service. I use JAXB for serialization, I have several namespaces, but I want the default namespace to be set to Atom without a prefix. Here is what I still have in package-info.java , but the atom prefix is โโset to ns3.
@XmlSchema(namespace = com.mycomponay.foo.ATOM_NAMESPACE, xmlns = { @XmlNs(prefix = "foo", namespaceURI = com.mycomponay.foo.NAMESPACE_FOO), }, elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) package com.mycompany.web; import javax.xml.bind.annotation.XmlNs;
I also noticed that namespaces are displayed in chrome, but not in Firefox.
source share