> I'm looking for advice on a better solution to my problem. In short, I > need to keep character references unresolved
The usual way to keep character references unresolved is to specify a character encoding that doesn't contain them, thereby forcing the serialiser to output a reference. I *think* if you use us-ascii (or whichever encoding is just the very basic characters) then your references should be serialised back to references. cheers andrew --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/2003