XslTransform Class : XML Transform « XML « VB.Net






XslTransform Class

  

Imports System
Imports System.Xml.Xsl

Imports System.Xml
Imports System.Xml.XPath

Public Class MainClass

    Public Shared Sub Main()
        Dim xslt As New XslCompiledTransform()
        
        xslt.Load(CType("http://server/favorite.xsl", String))
        
        Dim mydata As New XPathDocument("inputdata.xml")
        
        Dim writer As New XmlTextWriter(Console.Out)
        
        xslt.Transform(mydata, Nothing, writer, Nothing)
    End Sub
End Class

   
    
  








Related examples in the same category

1.XML XSL transformationXML XSL transformation
2.XML Transform: Applying a sytle to an XML document
3.Save Transformed XML into a HTML file
4.Using XslCompiledTransform to do the transformation
5.Transforms an XML document into an HTML document
6.Hard code the xsl and do the transform