Yes, you can't use '&' for the same reason you can't use '<' or
(potentially) '>'. They are special characters.   There are ways around
this, for a (very) little more info:
http://www.xml.com/pub/a/2003/02/26/qa.html




Kmart Tech News
news://uskihsvtfinsys
 
The essence of knowledge is, having it, to apply it; not having it, to
confess your ignorance. 

-----Original Message-----
From: Andy Schmidgall [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 11, 2003 12:44 PM
To: Struts Users Mailing List
Subject: RE: Digester does not like '&'


Well, I know &amp; is the character entity for &, but I'm just not clear on
why &amp; works in this case... Is it simply because '&' is flagged in the
parser as reserved for entities of the form "&xxx;", or is there another
reason? That's all I was asking. Sorry if I wasn't clear :)

-Andy

-----Original Message-----
From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 11, 2002 11:35 AM
To: Struts Users Mailing List
Subject: Re: Digester does not like '&'


&amp; is the character entity for the ampersand sign '&'.

-- Chris

NB. This is so basic that you absolutely should look this
up when seriously doing web development.

----- Original Message ----- 
From: "Andy Schmidgall" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, December 11, 2003 6:23 PM
Subject: OT: Digester does not like '&'


I'm sure I'm demonstrating a lack of basic knowledge about character
encoding here, but why does "&amp;" work when '&' doesn't? The thing that
gets me is that they both have '&' in them :)

-Andy

-----Original Message-----
From: Robert Taylor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 11, 2003 10:54 AM
To: Struts Users Mailing List
Subject: RE: Digester does not like '&'


Try &amp;

> -----Original Message-----
> From: Chiming Huang [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 11, 2003 11:51 AM
> To: Struts Users Mailing List
> Subject: Digester does not like '&'
> 
> 
> Hi,
>  
> We are using the Digester which comes with the Struts 1.1 for reading
> xml files.  The Digester will throw exception if the data contains an 
> '&' character.  Is there a way to work around this?
>  
> Thanks,
> Chiming
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-----------------------------------------
This message and its contents (to include attachments) are the property of Kmart 
Corporation (Kmart) and may contain confidential and proprietary information. You are 
hereby notified that any disclosure, copying, or distribution of this message, or the 
taking of any action based on information contained herein is strictly prohibited. 
Unauthorized use of information contained herein may subject you to civil and criminal 
prosecution and penalties. If you are not the intended recipient, you should delete 
this message immediately.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to