As to why this is being output by Castor, I can't help you on that issue. Does Castor just encode a null String as �? If it does, this is a serious error - it should throw a NullPointerException rather than generate an invalid document.
- Dennis
Nair, Bejoy wrote:
Thanks for info...But if it is a valid character why does the xml parser----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
gives me error while parsing. Is there any way i can get the parser to parse
this document.
regards,
Bejoy
-----Original Message-----
From: Rhett Sutphin [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 05, 2003 12:20 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Invalid Characters in XMl Generated
Nair, Bejoy wrote:
hi,no
I find that the xml generated from a bean object gives me invalid
characters. Marshalling used to work fine till i used it on this bean
object. The only change i see here is that the bean is empty and contains
data. The resultset which feeds data in the bean did not retrieve any datait.
from the database and hence the bean was marshalled without any data in
I am unable to understand why this happens.. I also tried initializing the<emp-elig-under-related-qual-plans>�</emp-elig-under-related-qual-plans>
bean data elements with a default value, still i am getting the garbage
characters. I am pasting the xml file snippet below.
<?xml version="1.0"?>
<ndt plan-status="�" plan-iD="0" plan-num="" plan-type-code="">
<deferral-limit-amount>0</deferral-limit-amount>
<collective-bargaining-units>0</collective-bargaining-units>If the "garbage characters" you refer to are �, know this: that is an XML entity reference. It refers to character 0x00 in the XML doc's character set. In unicode (and in ISO-8859-1) that is the null character, which in java would be written as '\0'.
<non-union-employees-eligible>�</non-union-employees-eligible>
If that isn't what you are referring to as "garbage characters," please clarify.
HTH,
Rhett Sutphin
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev