Wouldn't replacing "&" with "&" do the
trick?
Similarly, for "<>", use "<>" and for "<", use
"<" and for ">", use ">"
Hope
that helps.
______________________________________________________
Karuna
Annavajjala NetMap
Analytics
Ohio 43082
-----Original Message-----
From: VOIRY,ANTOINE (HP-France,ex2) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 11:34 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Unmarshalling special characterYes I get the same exception with this message :The entity name must immediately follow the '&' in the entity reference.
do you get the same exception?
[Antoine, VOIRY] -----Original Message-----
From: mats nyberg [mailto:[EMAIL PROTECTED]]
Sent: mercredi 9 janvier 2002 14:11
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Unmarshalling
does it work w/o that perticular element/are you sure you have isolated the error "as here"?
VOIRY,ANTOINE (HP-France,ex2) wrote:
[EMAIL PROTECTED] type="cite">Hi,
This syntax does not work neither.
Antoine
-----Original Message-----
From: mats nyberg [mailto:[EMAIL PROTECTED]]
Sent: mercredi 9 janvier 2002 11:46
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Unmarshalling
for starters and not very castor oriented; that is not valid XML!
should be 'C&A' instead, as i'm sure someone will tell you soon
//mats
VOIRY,ANTOINE (HP-France,ex2) wrote:Hi all,
I have only one easy question. How do we unmarshall a message that contains
field with special chararcter like &, without having an exception.
Example :
<MyExample>
<Company>C&A</Compagny>
</MyExample>
If I try to unmarshall this, I receive :
org.xml.sax.SAXException: Parsing Error : The entity name must
immediately follow the '&' in the entity reference.
Thanks in advance
Antoine
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
