Simon,

A HUGE thank you!  Yes, after spending hours
trying to figure this out, all I needed to
do was change this:

transformer.setOutputProperty(OutputKeys.ENCODING,"UTF-8");

to this:

transformer.setOutputProperty(OutputKeys.ENCODING,"ISO-8859-1");

--
Don


> This sounds like an encoding problem. When your xml 
> file has latin1 encoding (iso-8859-1), non-breaking 
> space is a single character of value A0. When your xml 
> file has utf-8 encoding, non-breaking space consist of 
> two bytes. If you mix both, that is, when the xml file
> declares utf-8 encoding but non-breaking space is written 
> in the latin-1 manner as a single byte A0, your XML file 
> is not valid.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to