FileInfo FI = nieuwe FileInfo (PathTextBox.Text);
XPathDocument xpdoc = nieuwe XPathDocument (fi.FullName);
XslTransform componentTransform = nieuwe XslTransform ();
componentTransform.Load (Path.Combine (di.FullName, „ComponentFile.xslt“));
outputComponentFile koord = Path.Combine (FI. Directory.FullName, Path.ChangeExtension (FI. Naam, „xml“));
Het coderen utf8 = nieuwe (valse) UTF8Encoding;
XmlTextWriter componentWriter = nieuwe outputComponentFile XmlTextWriter (, utf8);
componentWriter.Formatting = Formatting.Indented;
componentWriter.WriteStartDocument ();
componentTransform.Transform (xpdoc, ongeldig, componentWriter);
componentWriter.Close (); |