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 / type | Description |
|---|---|
pInstanceHTFORM |
|
pszFileNameLPCSTR / LPCWSTR |
|
pszXsltFileNameLPCSTR / LPCWSTR |
XSLT stylesheet filename; |
pszXsltTFCLPCSTR / LPCWSTR |
|