VB.Net by API/System.Xml.Xsl/XslCompiledTransform — различия между версиями

Материал из VB Эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 12:49, 26 мая 2010

XslCompiledTransform.Load

  
Imports System.Xml.Xsl " contains class XslCompiledTransform
Public Class Tester
    Public Shared Sub Main
      Dim transformer As XslCompiledTransform
      transformer = New XslCompiledTransform() " create transformer
      transformer.Load("YOurFile.xsl") " load and compile the style sheet
      transformer.Transform("YOurFile.xml", "YOurFile.html")
      Console.WriteLine(System.IO.File.ReadAllText("YOurFile.html"))
    End Sub
End Class


XslCompiledTransform.Transform

  
Imports System.Xml.Xsl " contains class XslCompiledTransform
Public Class Tester
    Public Shared Sub Main
      Dim transformer As XslCompiledTransform
      transformer = New XslCompiledTransform() " create transformer
      transformer.Load("YOurFile.xsl") " load and compile the style sheet
      transformer.Transform("YOurFile.xml", "YOurFile.html")
      Console.WriteLine(System.IO.File.ReadAllText("YOurFile.html"))
    End Sub
End Class