( Solution, i think ... or feature changed.. )
 
well,,
 
I have found the main condition to CastorXML puts ns1 , ns2 ....  prefix at each tag of our resultant xml document.
 
In my case, the MappingTool ( org.exolab.castor.tools.MappingTool ) put the mapping tag ( in mapping document ) as:
 
<mapping xmlns="http://castor.exolab.org/">
......
</mapping>
 
And it make the Castor put ns prefixes in all tags of resultant document. If you remove the xmlns,
the ns prefixes not occurrs.
<mapping>
.....
</mapping>
 
The strategy....
marshaller.setNamespacing( "" , "http://www.yourURI.com )
.... not make Castor to remove Ns prefixes.
 
 
Well , it's all. I not see advantages in use Ns prefixes at the resultant document, and i think this feature would be removed.
 
Thanks all.
 
Romilson
 

Reply via email to