Groups | Blog | Home
all groups > dotnet xml > march 2004 >

dotnet xml : Help with XMLDocument + XSL = string


jkanel_ng NO[at]SPAM yahoo.com
3/18/2004 2:29:50 PM
I have an XMLDocument object and an XSL string. I need to transform
the XML, but I cannot get any code examples to work properly.

I'm using .Net Framework 1.1, which obsoletes many of the code exmples
I've found in this newsgroup.

Here's the function I need to fill...

Public Function GetDynamicSQL(doc AS XMLDocument, XSL as String) as
String

......

End Function

Can anyone help?

Thanks!
jkanel_ng NO[at]SPAM yahoo.com
3/19/2004 6:25:09 AM
Found a solution...

Dim xslt As XslTransform = New XslTransform
xslt.Load(XSLFilePath)

Dim fs As StringWriter = New StringWriter
xslt.Transform(doc, Nothing, fs, Nothing)

AddThis Social Bookmark Button