From: Mark Thomas Date: 2008-09-19T22:02:24+09:00 Subject: Re: How to clean an xml files from non-utf-8 chars? How is the XML file created? If you know in advance which parts of the XML come from the database, wrap those sections in CDATA blocks and your XML will remain valid.