FileInfo fi = FileInfo novo (PathTextBox.Text);
Xpdoc de XPathDocument = XPathDocument novo (fi.FullName);
componentTransform de XslTransform = XslTransform novo ();
componentTransform.Load (Path.Combine (di.FullName, “ComponentFile.xslt”));
corda outputComponentFile = Path.Combine (fi. Directory.FullName, Path.ChangeExtension (fi. Nome, “xml”));
Codificação utf8 = UTF8Encoding novo (falso);
componentWriter de XmlTextWriter = XmlTextWriter novo (outputComponentFile, utf8);
componentWriter.Formatting = Formatting.Indented;
componentWriter.WriteStartDocument ();
componentTransform.Transform (xpdoc, zero, componentWriter);
componentWriter.Close (); o class= >
What de