XML Question

M

Mike

Hello,

I am using XML webcontrol on my form to display my transformed xml as html.
I am having a warning about using XslTransform (being obsolete). The
warning told me to use the new class XslCompiledTransform. The problem is
the XML control only accepts the XslTransform object for its .Transform
property. See code below. Any ideas?

Thanks

Xml xmlCtl = new Xml();
xmlCtl.ID = "New Report";
XmlDocument docXML = new XmlDocument();
docXML.LoadXml(reportDTO.Response);
XslTransform docXSL = new XslTransform();
docXSL.Load(Server.MapPath("Transforms\\" + reportDTO.XslSrc));
xmlCtl.Document = docXML;
xmlCtl.Transform = docXSL;
 

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,772
Messages
2,569,591
Members
45,103
Latest member
VinaykumarnNevatia
Top