The target encoding will affect character data as well as tag names and processing instruction targets.
This example maps tags in an XML document directly to HTML tags. Elements not found in the "map array" are ignored. Of course, this example will only work with a specific XML document type.