XSLTransform.TransformFromString

Syntax:

TransformFromString(<XMLString>, <XMLRecord>)

Parameters:

<XMLString> (required)

Type: String.
The string where the 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 the string. 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.TransformFromString(StrXML);


    

1C:Enterprise Developer's Community