[XML-SIG] Newbie : Identifying characters that will choke XML parser

Martin v. Löwis martin@v.loewis.de
06 May 2003 00:09:40 +0200


"Ian Sparks" <Ian.Sparks@etrials.com> writes:

> I build an XML document from data pulled from a database. Sometimes
> the database contains "bad" characters, how can I filter out the bad
> and properly encode the good?

If you want to completely discard the bad characters, I recommend use
use string.replace.

Regards,
Martin