env:
jdk 1.5.0_17
castor-1.3.1-core.jar
castor-1.3.1-xml.jar

When I marshalled my main Class(com.aking.castor.CD) which is defined the
ns-uri attribute of map-to element (see CDMapping.xml), I got xmlns=""
attribute in the field of subClass(com.aking.castor.Track) (see cds.xml).

Any help will be highly appreciated!

CDMapping.xml:

    
    
        ns-uri="http://www.abc.com/asdf"/>
        
            
        
                ... ...
        
            
        
    
    
        
            
        
                ... ...
    


cds.xml

    
        Sessions for Robert J
    
    
        
            xmlns="">Little Queen of Spades
            xmlns="">aaa
            xmlns="">bbb
        
        ... ...
    



http://old.nabble.com/file/p30412839/TestMarshall.rar TestMarshall.rar 
-- 
View this message in context: 
http://old.nabble.com/How-to-remove-empty-xmlns%28xmlns%3D%22%22%29-in-marshalled-SubClass-XML-tp30412839p30412839.html
Sent from the Castor - User mailing list archive at Nabble.com.

Reply via email to