In you XML, use the same escape sequences as in html:
< ---> <
> ---> >
\ ---> \
/ ---> /
ex: <slogan>Great taste. < filling</slogan>
When unmarshalled, foo.getSlogan().equals("Great taste. < filling") will be true.
When assigning these things to your value objects,
just use the character itself. The marshaller will
translate them to the above escape sequences.
ex: foo.setSlogan("Great taste. < filling");
After marshalling, you'll find the < in the xml.
> -----Original Message-----
> From: A.N Deepak [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 14, 2003 12:27 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] <2nd try> - Handling Non ASCII Characters
>
>
> I am sorry i wanted to know how to handle "<", ">" "/" "\"
> symbols in the
> content.
>
> > -----Original Message-----
> > From: A.N Deepak [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 14, 2003 10:09 AM
> > To: [EMAIL PROTECTED]
> > Subject: [castor-dev] <2nd try> - Handling Non ASCII Characters
> > Importance: High
> >
> >
> > Hi,
> > How do I unmarshall and Non ASCII Characters ?
> >
> > <CommandInfo CheckType="MANDATORY">
> > snmp-server community [$name] RO
> > </CommandInfo>
> >
> > Any help will be appreciated.
> >
> > regards
> > -Deepak
> >
> > -----------------------------------------------------------
> > 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
>
>
> DISCLAIMER:
> This email message is for the sole use of the intended
> recipient(s) and may contain confidential and privileged
> information. Any unauthorized review, use, disclosure or
> distribution is prohibited. If you are not the intended
> recipient, please contact the sender by reply email and
> destroy all copies of the original message and attachments.
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev