I don't do a lot with XML, so I always get a bit lost navigating the XML
classes.
In the past, I've used this:
xslt.Transform(doc, xslArg, Response.Output, Nothing)
Which takes my xml file (doc) and dumps out the XML.
What I'd like to do is isntead of having it just dump the HTML, have it sent
to a string variable.
I'm confused as to how to do that. It seems as if this should work:
Dim doc As System.Xml.XPath.XPathDocument = New
System.Xml.XPath.XPathDocument(XMLfile)
Dim transformedXML As System.IO.TextWriter
xslt.Transform(doc, Nothing, transformedXML)
myString = transformedXML.tostring
but it's not (getting hung up with my xslt.transform line).
What's the proper way to transform an XML file via XSLT and get it as a
string?
-Darrel