XmlDocument and XslTransform
In the same manner that you can point the DocumentSource and TransformSource properties of the Xml server control to XML and XSL/T files on your file system and render them in the browser, you can use the Document and Transform properties of the Xml server control to render XmlDocument and XslTransform classes in the browser. There are many reasons why you might need to do this, such as rendering dynamically generated, nonpersistent XML data (that is, XML data not persisted to the file system), or even rendering the results of a call to a Web service (see Chapter 14, “Exposing Data Through a Web Service,” for more information on building and consuming Web services).
As I take you through the following examples, you ...
Get Programming Data-Driven Web Applications with ASP.NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.