Hi I have a memory stream in which I use XMLTextWriter to write out some XML. What I want to do is transform this XML using the XSL.transform feature. The thing is I don't want to create a temp. XML file, I want to somehow use the stream to Transform it into the XSL. Thank you for any suggestions.
相关问题
- Illegal to have multiple roots (start tag in epilo
- Generic Generics in Managed C++
- How to Debug/Register a Permanent WMI Event Which
- 'System.Threading.ThreadAbortException' in
- Bulk update SQL Server C#
Just use an XmlReader and pass it to the Transform method. You'll need to seek to the start of the stream first.
I've obviously removed certain elements here to simplify the code, but you should get the idea.