I need to be able to translate an xml string using an xsl file and return the html output to a string for display.
I used to do the following in VB 6:
Private Function GetHTMLString(ByVal strXMLString as String) as String
Dim objXML as MSXML2.DOMDocument40
Dim objXSL as MSXML2.DOMDocument40
Set objXML = New MSXML2.DOMDocument40
Set objXSL = New MSXML2.DOMDocument40
strXMLString = "<?xml version='1.0'?><report><colour>red</colour></report>"
Set objXML = Nothing
Set objXSL = Nothing
Can anyone tell me how this is done in VB.Net - I have seen a lot of examples where the xml is translated from a file, but I don't want to actually use a file, probably just build up the XML string from a recordset and pass it into this function...
Thanks in advance...