I have a project where I need to binary-64-encode an xml-file and put it into another xml. To get this to work I first serialize the xml with dp:serialize and then use dp:binary-encode on the resultning variable from that. This works fine except for that all scandinavian characters are escaped. åäö gets to be åäö when I decode the result.
Any ideas? I've tried with dp:escaping="minimum" on the output-tag (Does the xsl:output tag affect dp:serialize?) and a number of other options. Through printing the serialized result before binary-64-encoding it I've seen that the escaping is added when dp:serialize is invoked.
Is it possible to serialize without escaping on datapower?
I don't think you can serialize without escaping. The DataPower escaping, e.g. "disable-output-escaping" only affects the OUTPUT context and not the "inline" XML...
I think you must handle it as binary data and get the "untouched" XML file from /object/message/node().
Since the binary node is not "xml" you can encode it straight off: