Robert Augustyn wrote:

Thomas,
Thanks, I do not like that answer ...
Any idea how to write this custom
marshaller/unmarshaller?
Someone had done it I am sure ...
Is that in docs?
Thanks in advance.
robert

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Thomas
Jones-Low
Sent: Wednesday, May 19, 2004 12:13 PM
To: [EMAIL PROTECTED]
Subject: Re: [jibx-users] How to marshal single char?


Robert Augustyn wrote:


Hi,
When I try to marshal single char the jibx insist on
input in form of
the ASCII number for that char.
How can I do that?
For example I want to map '^' to a char but that


does


not work jibx
insist on having 94 instead of '^'.
What am I missing? This has to be doable.
Thanks in advance.
Robert




You can't. You either need to fix the
org.jibx.runtime.Utility.java class or use a custom marshaller/unmarshaller. I
pointed out this bug several months ago in the JiBX SourceForge bug
database. Dennis closed it claiming (IIRC) that char should be an unsigned
integer, not a character.




hmm, couldn't you provide get and set methods that convert to/from a String instead?

-Gareth


------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to