TFormer_SetXmlDataFileEx

Provide Data · String encodings

Definition

Windows: ANSI; Unix: UTF-8

ERRCODE TFormer_SetXmlDataFileEx(HTFORM pInstance, LPCSTR pszFileName, LPCSTR pszXsltFileName, LPCSTR pszXsltTFC);

Windows only: UTF-16

ERRCODE TFormer_SetXmlDataFileExW(HTFORM pInstance, LPCWSTR pszFileName, LPCWSTR pszXsltFileName, LPCWSTR pszXsltTFC);

Contract

Specifies an XML file as JobData, optionally transforming it with an XSLT stylesheet.

This function is similar to TFormer_SetXmlDataFile but can transform the XML input into a supported data format before importing it. Pass the stylesheet filename as pszXsltFileName and NULL as pszXsltTFC. If pszXsltFileName is NULL or an empty string, no XSLT transformation is performed.

Returns

ErrOk (0) in case of success, non-zero if an error occurred

Parameters

Parameter / typeDescription
pInstanceHTFORM


The TFORMer instance provided by a previous call to TFormer_Init

pszFileNameLPCSTR / LPCWSTR


XML filename

pszXsltFileNameLPCSTR / LPCWSTR

XSLT stylesheet filename; NULL or an empty string disables transformation

pszXsltTFCLPCSTR / LPCWSTR


Reserved for internal TFC processing. Pass NULL.

Search documentation

Search in
More scopes
Additional scopes

All contents