What happens if instead of BlazeDS you just start with the XML in the source
Thanks for the question. If I cut and paste the XML into the Flex application, it renders correctly.
It appears as though something is happening to it between the java server and when it gets translated into XML in Flex.
As a test, I read the XML from a file and immediately transfer it up to the client. When I try and render it, it is incorrect.
Do I need to transfer it in a binary form?
I figured it out. When creating the XML string from the database and creating a Java string, I needed to encode it correctly.
String returnString = new String(XMLBytes,"UTF-8");
I assumed that creating a String from the byte array was enough given that java is Unicode enabled.
Anyway, once I changed that, it worked.