I want to get rid of these silly little namespaces that JAXB is adding for the attributes in my XML output. Here is an example of what I am talking about:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<invocation xmlns="http://appriss.com/xsd/invocation.xsd" hashCode="1658591237">
<method>
<signature>public void com.appriss.core.hibernate.StoredProcedurePersister.insert(java.io.Serializable,java.lang.Object[],java.lang.Object,org.hibernate.engine.SessionImplementor) throws org.hibernate.HibernateException</signature>
<args>
<arg xmlns:ns1="http://appriss.com/xsd/invocation.xsd" ns1:type="com.appriss.demo.CompositePK">com.appriss.demo.CompositePK@a71d9209</arg>
<arg xmlns:ns2="http://appriss.com/xsd/invocation.xsd" ns2:type="[Ljava.lang.Object;">[Ljava.lang.Object;@17d41d12</arg>
<arg xmlns:ns3="http://appriss.com/xsd/invocation.xsd" ns3:type="com.appriss.demo.TestCompositePKEntity">com.appriss.demo.TestCompositePKEntity@897d5ad</arg>
<arg xmlns:ns4="http://appriss.com/xsd/invocation.xsd" ns4:type="org.hibernate.impl.SessionImpl">SessionImpl(PersistenceContext[entityKeys=[EntityKey[com.appriss.demo.TestCompositePKEntity#component[key1,key2]{key1=1, key2=ninety-nine}]],collectionKeys=[]];ActionQueue[insertions=[EntityInsertAction[com.appriss.demo.TestCompositePKEntity#com.appriss.demo.CompositePK@a71d9209]] updates=[] deletions=[] collectionCreations=[] collectionRemovals=[] collectionUpdates=[]])</arg>
</args>
</method>
</invocation>
This xmlns:ns1, ns2, ns3, ns4 garbage has got to go. How can I do this? Is there something in my XSD that may be causing this? If that is possible, I will post my XSD as well, but I'm hoping there is simply a way to turn this off at the JAXBContext or Marshaller level.