hello together, following problem, when i marshalling a class with a byte (or char) array and an ns-uri declaration in the mapping file,i get an empty ns entry in the byte[] property. <class name="test.FaultMessageRequest" > <map-to xml="SendFaultMessageRequest" ns-uri="http://localhost/castor"/> <field name="Content" type="bytes" > <bind-xml name="Content" node="element" /> </field> .....
<SendFaultMessageRequest xmlns="http://localhost/castor"> <Content xmlns="">b29vb29vb29vb29vb29vb28=</Content> <Name>TEST</Name> </SendFaultMessageRequest> my code: FaultMessageRequest req = new FaultMessageRequest(); req.setXMLString("TEST"); req.setContent(req.getXMLString().getBytes()); Marshaller marshaller = new Marshaller(new OutputStreamWriter(System.out)); Mapping mapping = new Mapping(); mapping.setBaseURL("src"); mapping.loadMapping( "castorMapping.xml" ); marshaller.setMapping(mapping); marshaller.marshal(req); tested with castor1.2 and older versions + xerces2.81 Thanks Sebastian --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

