The following code works and takes the XSL and XML from local disk and returns the transformed XML to the variable Xtransoutput.
Dim XmlInputPath As String = "C:\Any.XML"
Dim XslInputPath As String = "C:\Any.XSL"
Dim StringWriter As New System.IO.StringWriter
Dim XsltTransformation As New XslCompiledTransform(True)
Dim XsltArgumentList As New XsltArgumentList
Dim Xtransoutput As String = Nothing
XsltTransformation.Load(XslInputPath)
XsltTransformation.Transform(XmlInputPath, XsltArgumentList, StringWriter)
Xtransoutput = StringWriter.ToString
My problem is that I have both the XML and the XSL in separate strings already, they are not on the disk and I don't can't write them to disk for security reasons. Any suggestions on how to get these to work from strings rather than from disk files?
TIA!
Here is a C# example -- converting it to VB is left as exercise to the reader :) )