Skip to main content

XSLTransform.TransformFromFile

TransformFromFile

Syntax

TransformFromFile(<FileName>, <XMLRecord>)

Parameters

<FileName> (required)

Type: String. Name of file where the converted XML document is located.

<XMLRecord> (optional)

Type: DOMNodeWriter, FastInfosetWriter, XMLWriter. XML writing object for writing the conversion result. This parameter is worth specifying if the data are converted to an XML document. If this parameter is specified, conversion results will be written to the object XMLWriter, in this case there will be no returned value.

Returned value

Type: String. Conversion results.

Description

Converts the XML document located in a file. Uses the conversion description and parameter values that have been previously specified in this object.

Availability

Thin client, server, thick client, external connection.

Example

Transform = New XSLTransform;
Transform.LoadFromFile("c:/transforms/transform.xsl");
Transform.AddParameter("low_sales", 30000);
Result = Transform.TransformFromFile("c:/docs/report.xml");

Translation

Русская версия: ПреобразованиеXSL.ПреобразоватьИзФайла (XSLTransform.TransformFromFile)