doTranslateFromNative
This function translates the input data to XML, where the input can be a string to translate, a file or FTP adapter attachment, an attachment, or an element that contains Base64-encoded data. The targetType can be DOM, ATTACHMENT or SDOM.
Signature:
med:doTranslateFromNative('input','nxsdTemplate','nxsdRoot','targetType','attachment element'?)
Arguments:
-
input: The input data of the XPath function. The data is in a native format, such as comma-separated values (CSV). -
nxsdTemplate: The NXSD schema to use to translate the input data to XML format. -
nxsdRoot: The root element in the NXSD schema. -
targetType: Determines how the XPath function translates the native data into XML. -
attachment element: The attachment for the returned XML. This parameter is optional.
Property IDs:
-
namespace-uri:http://schemas.oracle.com/xpath/extension -
namespace-prefix:med
Example:
med:doTranslateFromNative(string($in.request/inp1:request/inp1:source),'xsd/address_csv.xsd','Root-Element','DOM')