Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.TransformXML Method (Access)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

Syntax

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

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
DataSourceRequiredStringThe name and path of the XML file to import.
TransformSourceRequiredStringThe name and path to the XSL file to apply to the XML data file.
OutputTargetRequiredStringThe file name and path for the resulting XML data file after applying the XSL file.
WellFormedXMLOutputOptionalBooleanSetting 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.
ScriptOptionOptionalAcTransformXMLScriptOptionA 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.

See also

Concepts

Application Object

© 2018 Microsoft