xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <v...@suplicity.com>
Subject RE: Parsing failures with '&'
Date Wed, 15 Aug 2001 19:05:50 GMT
there may not be a short cut method as XML is already built,

but one can look for suspected tags (using StringTokenizer etc) and replace
"&" with "&amp".

thanks
venu

-----Original Message-----
From: swallace@iFulfillment.com [mailto:swallace@iFulfillment.com]
Sent: Wednesday, August 15, 2001 2:46 PM
To: general@xml.apache.org
Subject: Parsing failures with '&'


We have a situation where a client has the ampersand character in product
descriptions submitted to us in XML.  For a fictious example, assume
<description>M & M</description>.  The crimson parser fails with "Illegal
character or entity reference syntax".

Is there anyway around this problem short of writing a replacement script
before sending it to the parser?

Thanks in advance.

Scott


---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org



---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


Mime
View raw message