Share via


Application.TransformXML Method (Access)

Applies an Extensible Stylesheet Language (XSL) stylesheet to an XML data file and writes the resulting XML to an XML data file.

Syntax

.TransformXML(DataSource, TransformSource, OutputTarget, WellFormedXMLOutput, ScriptOption)

A variable that represents an Application object.

Parameters

Name

Required/Optional

Data Type

Description

DataSource

필수

String

The name and path of the XML file to import.

TransformSource

필수

String

The name and path to the XSL file to apply to the XML data file.

OutputTarget

필수

String

The file name and path for the resulting XML data file after applying the XSL file.

WellFormedXMLOutput

선택

Boolean

Setting this argument to True will create a well-formed XML file. Setting this argument to False will encode the resulting XML file in UTF-16 format. The default value is False.

ScriptOption

선택

AcTransformXMLScriptOption

A AcTransformXMLScriptOption constant that specifies the action taken if the XSL file contains scripting code. The default value is acPromptScript.

Return Value

Nothing

Remarks

Setting the WellFormedXMLOutput argument to True will result in a run-time error if the XSL file that you apply does not result in well-formed XML.

참고 항목

개념

Application Object

Application Object Members