|
-
September 17th, 2002, 12:48 PM
#1
Loading a MemoryStream into a XmlDataDocument
Hello everybody,
I've got serious problems while loading a memorystream (containing well formed XML) into a XMLDatadocument. A system error occurs while doing this. I've tried some workarrounds, but it must be possible to do it like this. In the code the error occurs while loading "objTempStorage" in doc2.
Code:
Dim doc As Xml.XmlDataDocument = New Xml.XmlDataDocument(aDataset)
Dim objTempStorage As New MemoryStream()
Dim trans As Xml.Xsl.XslTransform = New Xml.Xsl.XslTransform()
trans.Load("Rowset.xsl")
trans.Transform(doc, Nothing, objTempStorage)
Dim doc2 As Xml.XmlDataDocument = New Xml.XmlDataDocument()
doc2.Load(objTempStorage)
objTempWriter.Close()
If anyone knows a solution for this strange problem, please let me know!!
Thanx in advance,
John Digweed
Regards,
John Digweed
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|