Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Serializing XML with stylesheet
Message
From
20/08/2012 14:25:37
 
 
General information
Forum:
ASP.NET
Category:
XML
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01550792
Message ID:
01550829
Views:
33
>Doesn't 'loXmlDocument.Load(loMemoryStream)' fail since loMemoryStream is not populated ?

Correct, at that point oMemoryStream is already being constructed in memory. And, I need to add this stylesheet. However, the command to use is:
loXmlDocument.InsertAfter(loXmlProcessingInstruction, loXmlDocument.FirstChild)
But, when constructing the XML in memory, all I have is oMemoryStream. Does this mean I would have to dump the memory stream into a variable. Load that variable into loXmlDocument. Benefit from its InsertAfter() method. Once inserted, reinitialize oMemoryStream with an updated content. There has to be a way to manipulate something like directly from the oMemoryStream variable. Have you ever did something like this?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform