[xsl] How to convert XML doc from UTF-8 to ISO-8859-1 char encoding?

Subject: [xsl] How to convert XML doc from UTF-8 to ISO-8859-1 char encoding?
From: "Ben Stover" <bxstover@xxxxxxxxxxx>
Date: Mon, 11 Jan 2010 15:30:06 +0100
Assume I have a XML doc which is UTF-8 encoded.

Can I convert it somehow to ISO-8859-1 encoding?

And how to  encode it the opposite direction?

Normally the encoding is defined in an attribute in the top most <xml> tag.
Is there a way to detect if this declaration is true and corresponds with the real encoding in the full XML doc?
Or if it is faked/misplaced by mistake?

Ben

Current Thread