0x1a isn't a valid character for XML content, you'll need to escape it or something. Here's the relevant bit of the standard: http://www.w3.org/TR/2000/REC-xml-20001006#NT-Char
I've done a few things to clean up strings before letting JiBX marshall objects into XML but haven't come up with anything I really like. Is there api available to do some kind of cleanup/transform of the data during the marshalling? Steve On Thu, 22 Apr 2010, Ben Davies wrote: > I think you'll have to provide some sample data. > > -----Original Message----- > From: TomazM [mailto:tomaz.majerh...@arnes.si] > Sent: 22 April 2010 12:19 > To: JiBX users > Subject: [jibx-users] Illegal character code 0x1a in content text > > Have any idea of this cind of problem: > > Caused by: org.jibx.runtime.JiBXException: Error writing marshalled > document > at > org.jibx.runtime.impl.MarshallingContext.element(MarshallingContext.java > :734) > at > si.arnes.aris.bean.Uporabniki.JiBX_binding_marshal_1_6(Uporabniki.java) > at > si.arnes.ozwizardlu.soap.transfer.UserData.JiBX_binding_marshal_1_0(User > Data.java) > at > si.arnes.ozwizardlu.soap.transfer.UserInfo.JiBX_binding_marshal_1_0(User > Info.java) > at > si.arnes.ozwizardlu.soap.transfer.JiBX_bindingUserInfo_access2.marshal() > at > org.apache.axis2.jibx.JiBXDataSource.marshal(JiBXDataSource.java:194) > at > org.apache.axis2.jibx.JiBXDataSource.serialize(JiBXDataSource.java:213) > ... 61 more > Caused by: java.io.IOException: Illegal character code 0x1a in content > text > at > org.jibx.runtime.impl.UTF8StreamWriter.writeTextContent(UTF8StreamWriter > .java:261) > at > org.jibx.runtime.impl.MarshallingContext.element(MarshallingContext.java > :729) > ... 67 more > > > Regards, tomaz > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.814 / Virus Database: 271.1.1/2825 - Release Date: 04/21/10 > 19:31:00 > > > ------------------------------------------------------------------------------ > _______________________________________________ > jibx-users mailing list > jibx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jibx-users > ------------------------------------------------------------------------------ _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users