Hi Thomas,

XML (at least version 1.0) prohibits characters 0x00-0x1F (except for tab, newline, and return) anywhere within an XML document. This is somewhat relaxed in XML 1.1 - but as far as I know very few companies are actually supporting 1.1 yet.

If you have to work with text that contains this type of invalid character you'll need to either delete them or escape them. You might want to use a customized version of XMLWriter for this purpose, so that instead of throwing an exception it just discards or escapes the character.

I'll look into why the CVS code doesn't give you the reason for the exception.

 - Dennis

Thomas Nusko wrote:

Hi,

using the current CVS code I got the following error:

Caused by: org.jibx.runtime.JiBXException: Error writing marshalled document
       at
org.jibx.runtime.impl.MarshallingContext.attribute(MarshallingContext
.java:1029)
       at
net.uniopt.ext.domain.ot.CustomerExt.JiBX_bin_binding_marshalAttr_2_0
(CustomerExt.java)
       at
net.uniopt.ext.domain.ot.JiBX_bin_bindingCustomerExt_access.marshal()

       at
net.uniopt.ext.domain.sys.JiBX_MungeAdapter.JiBX_bin_binding_marshal_
1_134()
       at
net.uniopt.ext.domain.ExtContainer.JiBX_bin_binding_marshal_2_0(ExtCo
ntainer.java)
       at
net.uniopt.ext.domain.JiBX_bin_bindingExtContainer_access.marshal()
       at net.uniopt.ext.domain.ExtContainer.marshal(ExtContainer.java)

The RC0 version produced the same error saying it was due to an illegal
character (0x7) in the value text. Do I have to look for such characters
in my data or should JiBX in principle be able to write all possible
Java Strings to XML?


Mit freundlichen Grüßen - Best regards

Thomas Nusko
 O P T I T O O L  GmbH
Bruderwöhrdstr. 15 b
93055 Regensburg
Germany

Tel: +49 (0)941 - 59 57 8 - 22
Fax: +49 (0)941 - 59 57 8 - 7
http://www.optitool.de
mailto:[EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to