I
info
I'm battling here..
I have transformed some XML using XSL, and need to output the result
as a string...
But I can't get the MemorySteram converted to a String...
Can someone assist?
I have this:
public string GenerateMenu()
{
string outputXml = string.Empty;
// Load the master XML File...
XPathDocument masterMenu = new XPathDocument(MasterXMLMenu);
//Load the Transformation XSL document...
XslTransform masterTransformer = new XslTransform();
masterTransformer.Load(MasterXSLMenu);
MemoryStream xmlStream = new MemoryStream();
masterTransformer.Transform(masterMenu, null, xmlStream);
....
Now I need to transfor xmlStream to String type...
Can you assist?
I have transformed some XML using XSL, and need to output the result
as a string...
But I can't get the MemorySteram converted to a String...
Can someone assist?
I have this:
public string GenerateMenu()
{
string outputXml = string.Empty;
// Load the master XML File...
XPathDocument masterMenu = new XPathDocument(MasterXMLMenu);
//Load the Transformation XSL document...
XslTransform masterTransformer = new XslTransform();
masterTransformer.Load(MasterXSLMenu);
MemoryStream xmlStream = new MemoryStream();
masterTransformer.Transform(masterMenu, null, xmlStream);
....
Now I need to transfor xmlStream to String type...
Can you assist?