What is it returning from the method? A string, a stream, and XmlDocument,
and XmlNode, an XmlReader?
Supposing that the method returns a string:
string xml = MyMethod();
System.IO.StringReader reader = newStringReader(xml);
System.Xml.XPath.XPathDocument doc = new XPathDocument(reader);
System.Xml.Xsl.XslTransform trans = new XslTransform();
trans.Load(Server.MapPath("myxslt.xslt"));
trans.Transform(doc,null,Response.OutputStream,new XmlUrlResolver());
--
Kirk Allen Evans
www.xmlandasp.net
Read my web log at
http://weblogs.asp.net/kaevans
"suzy" <me@nospam.com> wrote in message
news:#P**************@TK2MSFTNGP10.phx.gbl...
i have a method which is return xml from a dataset.
can someone please post some example code of how i can transform this xml
using an xsl stylesheet?
i am only interested in the c# part of the code, not the xsl.
please note that my xml is coming from a method, not from a xml file.
thanks.