Whats the memory stream for? Is that a streamwriter? Also, do you store each
article as a separate file?
"Andrew" <andrewmooney@aspalliance.com> wrote in message
news:0b3801c33fd2$81781b00$a101280a@phx.gbl...
> Yes, XML is the way to go. I use a Literal Control
> (PageContent) to receive the XML file that is transformed
> with XSL. This also allows you the flexibility of using
> templates along with your XML articles.
>
> XmlDocument doc = new XmlDocument( );
> doc.Load(xmlPath );
> XslTransform xslDoc = new XslTransform();
> xslDoc.Load(xslPath);
> MemoryStream ms = new MemoryStream();
> xslDoc.Transform( doc, null, ms );
> ms.Seek( 0, SeekOrigin.Begin );
> StreamReader sr = new StreamReader(ms);
> PageContent.Text = sr.ReadToEnd();
> sr.Close();