JohnDigweed
September 17th, 2002, 12:48 PM
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.
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
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.
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