"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