Direct results of Transformation

M

Mark Goldin

I have this line in my code:

xslt.Transform(new
XPathDocument("D:\\testarea\\dotnet\\processtree\\TIPTREECAT.xml"), xslArg,
writer, null);

How can store results of the transformation into a string?
 
G

Guest

Please see if the following helps
XPathDocument xpathDoc = new XPathDocument(Server.MapPath("MyXml.xml"))
XslTransform xTran = new XslTransform()
xTran.Load(Server.MapPath("myxsl.xsl"))
string HtmlOutput
StringWriter sw = new StringWriter()
xTran.Transform(xpathDoc,null,sw,null)
HtmlOutput = sw.ToString()

Regards
-am
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top