Ask a Question related to ASP.NET General, Design and Development.
-
Showjumper #1
Re: Stroing articles as xml - the best way?
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();
Showjumper Guest
-
Pls Help-Looking for PHP Product for Articles
Hi, I'm looking for a product that will help me create a documentation system. I'd like to be able to post individual articles on an intranet,... -
[PHP] Pls Help-Looking for PHP Product for Articles
select the article then get the comments joined to that article id ?? -
[PHP] Pls Help-Looking for PHP Product for Articles
> I'm looking for is the kind of format used on this page: You know the php.net Web site is open source, right? If you like that format, use it... -
related articles ... (try 2)
:(( posted a question here 3 days ago, now I am able to come look at answers it's no more available :(( so... @supapablo: if you still have your... -
KB Articles
Where can we find the index (list) of all the Microsoft KnowledgeBase Articles (KB Articles)on SQL Server 2000. Under the "Search Knowledge Base"...



Reply With Quote

