Transferring an XML Document across Environments

When you transfer an XML document across environments (for example using FTP), you must be aware of the document's content in order to determine the appropriate transfer mode. If the document contains either an encoding attribute in the XML declaration or if a byte-order mark precedes the XML declaration, transfer the file in binary mode. If the document contains neither criteria and you are transferring the document across similar hosts, transfer the file in text mode.
When you export an XML document using the XML engine, by default, the XML document contains an encoding attribute in the XML declaration from the SAS data set's encoding (for example, <?xml version="1.0" encoding="windows-1252" ?>). You can override the SAS data set's encoding when you export the XML document by specifying the XMLENCODING= LIBNAME statement option.