HI Miki,
You should be able to use the XslTransform class.
Below is an example
XslTransform xslt = new XslTransform();
//Load the stylesheet.
xslt.Load("http://server/YourXSLFileHere.xsl");
//Create a new XPathDocument and load the XML data to be transformed.
XPathDocument mydata = new XPathDocument("inputdata.xml");
//Create an XmlTextWriter which outputs to the console.
XmlWriter writer = new XmlTextWriter(<Output file or Response Stream Here>);
//Transform the data and send the output to the destination
xslt.Transform(mydata,null,writer, null);
Regards,
Bennie
"Miki Szinegh" <zs******@sympatico.ca> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hello All,
I have an asp.net search application that brings up a datagrid of results,
with one of the fields being a hyperlink to an XML document, of which
there are thousands. By clicking this link, the browser loads the XML document
in its raw form.
My question is, how do I use some of these formatting techniques (XSL etc)
to format this XML the way I want to, after the link is clicked on?
A nudge in the right direction would be appreciated, as I can't seem to
find any example of what I am doing.
Thanks
Miki