Transform XML into HTML using a XSL Stylesheet in VB.NET



Transform XML into HTML using a XSL Stylesheet in VB.NET

'Assembly: System.Xml.dll

'Namespace: System.IO
'Namespace: System.Xml.Xsl


Using stream As FileStream = File.Open(outputFile, FileMode.Create)
            ' Create XsltCommand and compile stylesheet.
            Dim processor As New XslCompiledTransform()
            processor.Load(xslFile)
            ' Transform the file.
            processor.Transform(xmlFile, Nothing, stream)
End Using

Share |

 Cant find the page you are looking for?
 Help us to improve by adding the content that you are looking for.
 Leave a feedback
 We look forward to hear your comments and feedback.