XML Filters for illegal characters

From: Date: Wed, 05 Jan 2005 16:20:18 +0000
Subject: XML Filters for illegal characters
Groups: php.general 
Request: Send a blank email to php-general+get-205677@lists.php.net to get a copy of this message
Hello, I'm wondering if anyone knows of a filter that can take data to be wrapped in XML tags and filter this data encoding any illegal XML characters or, if they cannot be encoded, remove them. The problem I have is a database that contains text that must be wrapped in XML. Some of this text has illegal characters in it (probably copied from MS Word). Some of the characters that keep popping up are not very frequently used, so I'm hoping whatever filters get suggested, they can simply strip out these characters if they cannot encode them. thanks for your help. -- Doug Jones Co-Op Web Developer douglas.1.jones@lmco.com

« previous php.general (#205677) next »