System.Xml.Xsl.XslCompiledTransform.Transform Method

Executes the transform using the input document specified by the URI and outputs the results to a file.

Syntax

public void Transform (string inputUri, string resultsFile)

Parameters

inputUri
The URI of the input document.
resultsFile
The URI of the output file.

Remarks

This method uses a default System.Xml.XmlUrlResolver with no user credentials to resolve the input and output documents. If any of these resources are located on a network resource that requires authentication, use the overload that takes an System.Xml.XmlResolver as one of its arguments and specify an System.Xml.XmlResolver with the necessary credentials.

An System.Xml.XmlReader with default settings is used to load the input document. DTD processing is disabled on the System.Xml.XmlReader. If you require DTD processing, create an System.Xml.XmlReader with this feature enabled, and pass it to the erload:System.Xml.Xsl.XslCompiledTransform.Transform method.

Requirements

Namespace: System.Xml.Xsl
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0