Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generate XML to a string column in a dataset.
Message
De
27/01/2003 09:29:30
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Generate XML to a string column in a dataset.
Divers
Thread ID:
00745742
Message ID:
00745742
Vues:
52
Has anyone figured out how to generate a xml stream to a column in a dataset instead of to a file?

I am saving treeview information to an xml document and do to customer contraints, I need to save the xml to a column in a dataset and be able to read it back to recreate the treeview.

I am using the following code in VB.Net to accomplish part of the process although it only writes to a file.
        Dim formatter As SoapFormatter = New SoapFormatter()
        Dim stream As Stream = New FileStream("c:\Free.xml", FileMode.Create, FileAccess.Write, FileShare.None)

        Dim root As New TreeNode()
        Dim node As TreeNode
        For Each node In treForceStructure.Nodes
            root.Nodes.Add(CType(node.Clone(), TreeNode))
        Next node
        formatter.Serialize(stream, root)
        stream.Close()
Any ideas on how to accomplish this? I can't seem to find any info on it.

Thanks,
Pat.
Patrick L. Stovall
Senior Architect/Developer
MCP - C#

VeroQuest
P.O.Box 7216
Kalispell, MT 59904
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform