function xPath = tixiXPathExpressionGetXPath(handle, xPathExpression, index)
    % this file was automatically generated from tixi.h on 2025-09-30

    if (ischar(handle))
        error('Invalid type of argument "handle"');
    end

    if not(ischar(xPathExpression))
        error('Invalid type of argument "xPathExpression"');
    end

    if (ischar(index))
        error('Invalid type of argument "index"');
    end

    try
        xPath = tixi3_matlab('tixiXPathExpressionGetXPath', handle, xPathExpression, index);
    catch err
        error(err.message)
    end
end

