Hi,
Im using a custom FieldHandler to format fields generated in a specific manner. However, when I use the marshaller, I get an xsi:type on the message that we're going to send to a client. Is there any way to remove this xsi:type <?xml version="1.0" encoding="UTF-8"?> <Fund xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Event> <balance xsi:type="java:java.lang.String">614013.96332</balance> </Event> </Fund> when, what I actually want is : <?xml version="1.0" encoding="UTF-8"?> <Fund> <Event> <balance>614013.96332</balance> </Event> </Fund> Ive managed to put the namespace at the root, rather than on every element as discussed on this group by doing the following : Mapping mapping = new Mapping(this.getClass().getClassLoader ()); mapping.loadMapping ("mapping.xml"); Marshaller marshaller = new Marshaller(sWriter); marshaller.setMapping(mapping); marshaller.setNSPrefixAtRoot(true); marshaller.setMarshalExtendedType(false); marshaller.setNamespaceMapping("xsi", "http://www.w3.org/2001/XMLSchema-instance"); marshaller.marshal(fund); But I want to get rid of the type attribute altogether. Help, Nitin This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
