The built-in function, ng:base64ToUTF8 converts a base64 encoded string (text) into a UTF8 based string. This can e.g. be used, if you want to extract the original UTF-8 encoded text from a base64 encoded node found in an input XML input file. If the input string is empty (null), then the output is empty (null). If the input is a nodeset, then only the first node is used.
This function is related to the functions: ng:base64, ng:base64EnodeFile and ng:base64EncodeResource.
If the input data is null or empty, then an empty string is returned (from version 3.1.2 and newer).
Here is an example:
This XPath expression:
ng:base64ToUTF8('SU5URVJGT1JN')
outputs this string:
INTERFORM