Hi,
 
Castor (0.9.3.19) continues putting ns prefixes in my document.
I only has changed the version ( 0.9.3.19 by 0.9.3.9 ) and the ns prefixes was removed.
The old version seem is better in this case.
 
Marshalling in 0.9.3.19 version:
 
      FileWriter fw = new FileWriter( this.documentFile );
      Marshaller marshaller = new Marshaller( fw );
      marshaller.setMapping( this.mapping );
      marshaller.setSchemaLocation( "http://www.metamodel.com/storage " + this.schemaFile.getCanonicalPath() );
      marshaller.setNamespaceMapping( "", "http://www.metamodel.com/storage" );
      marshaller.marshal( set );
      fw.close();
 
Marshalling in 0.9.3.9 version:
 
      FileWriter fw = new FileWriter( this.documentFile );
      Marshaller marshaller = new Marshaller( fw );
      marshaller.setMapping( this.mapping );
 
      // Ok .. I lost this good function
      //  marshaller.setSchemaLocation( "http://www.metamodel.com/storage " + this.schemaFile.getCanonicalPath() );
      marshaller.setNamespaceMapping( "", "http://www.metamodel.com/storage" );
      marshaller.marshal( set );
      fw.close();
 
Thanks
Romilson

Reply via email to