Function ToString() on an XML variable does not work on the CFMX servers but works fine locally. What's wrong?

This is a confirmed Macromedia bug 48509 present on servers with sandbox security enabled. Here is a workaround you can use: instead of #ToString(myxmldoc)# use #HtmlCodeFormat(xmlOut)# More details are available in the Macromedia Forum.