Formatting the XML File

The XML file that is generated after compilation can be formatted using styling mechanisms such as Extensible Style Language (XSL) and Cascading Style Sheets (CSS). These styling mechanisms help the developer to separate Web content from the actual style or format in which the pages are displayed. The code example shown in Listing 15.12 is first compiled to produce a .xml file.

Listing 15.12. The Card Class
 using System; ///<summary> ///The Card class implements the functionality required ///for the Card product in the Virtual Bookstore ///</summary> public class Card { public string code; public string category; public string message; ///<summary> ///This is the default constructor ///</summary> public Card() { //default ...

Get Special Edition Using C# 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.