string xmlFile = @"c:\Alerts.xml"; string xslFile = @"c:\Alerts.xsl"; XslCompiledTransform xslDocument = new XslCompiledTransform(); xslDocument.Load(xslFile); StringWriter stringWriter = new StringWriter(); XmlWriter xmlWriter = new XmlTextWriter(stringWriter); xslDocument.Transform(xmlFile, xmlWriter); uxWebBrowser.DocumentText = stringWriter.ToString();
//- Load XSL Transformation ----------------------------------------------------------- string xslFile = "~/Search.xsl"; xslFile = Server.MapPath(xslFile); XslCompiledTransform xslDocument = new XslCompiledTransform(); xslDocument.Load(xslFile); //- Load XML Data --------------------------------------------------------------------- string result = Globals.Database.Search(searchFor); StringReader stringReader = new StringReader(result); XmlReader xmlReader = new XmlTextReader(stringReader); StringWriter stringWriter = new StringWriter(); XmlWriter xmlWriter = new XmlTextWriter(stringWriter); //- Transform and Output Data --------------------------------------------------------- xslDocument.Transform(xmlReader, xmlWriter); uxSearchResultsLabel.Text = stringWriter.ToString();
ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.