一、使用XmlWriter創建XML文件:
Main( (MemoryStream ms = XmlWriterSettings settings = settings.Indent = settings.Encoding = UTF8Encoding( settings.NewLineChars = (XmlWriter xmlWriter = xmlWriter.WriteStartDocument( xmlWriter.WriteStartElement( xmlWriter.WriteStartElement( xmlWriter.WriteAttributeString(, xmlWriter.WriteString( xmlWriter.WriteElementString(, xmlWriter.WriteStartElement( xmlWriter.WriteCData( xmlWriter.WriteComment( xml = }
二、使用Linq To XML創建RSS源文件:
context.Response.ContentType = context.Response.Write( XElement rssFeed = XElement(, XAttribute(, fixedUrl = wholeUrl = XElement channel = XElement( XElement(, XElement( XElement(, XElement( ( article XElement item = XElement( XElement title = XElement( wholeUrl = .Format( XElement link = XElement( XElement description = XElement( XElement pubDate = XElement( { }