Thanks for info...But if it is a valid character why does the xml parser 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, > 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 no > data. The resultset which feeds data in the bean did not retrieve any data > from the database and hence the bean was marshalled without any data in it. > I am unable to understand why this happens.. I also tried initializing the > 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> > > <emp-elig-under-related-qual-plans>�</emp-elig-under-related-qual-plans> > <collective-bargaining-units>0</collective-bargaining-units> > <non-union-employees-eligible>�</non-union-employees-eligible> 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'. 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
