Altova MapForce 2025 Enterprise Edition

Replaces the extension of the file path supplied by the filepath parameter with the one supplied by the connection to the extension parameter.

mf-func-replace-fileext

 

Languages

Built-in, C++, C#, Java, XQuery, XSLT 1.0, XSLT 2.0, XSLT 3.0.

 

Parameters

Argument

Description

filepath

Mandatory argument. Supplies the file path to be processed.

extension

Mandatory argument. Supplies the new extension to use.

 

Example

If you supply "c:\data\Sample.log" as filepath, and ".txt" as extension, the result is c:\data\Sample.txt.

© 2018-2024 Altova GmbH