Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String is not long enough
Message
From
05/02/2008 16:39:29
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01289423
Message ID:
01289808
Views:
11
After following what you said, I believe this is something like this:
        ' Convert a DataSet into an Xml
        ' This functions make it so the schema is included
        ' expO1 DataSet
        Public Function DataSetToXml(ByVal toDataSet As DataSet) As String
            Dim loStringWriter As StringWriter = New StringWriter()
            toDataSet.WriteXml(loStringWriter, XmlWriteMode.WriteSchema)
            Return loStringWriter.ToString
        End Function
Can you confirm me if this is pretty much the simpler way to achieve this?

When I call this method, I need to end up with a string. Using StringWriter instead should eliminate the memory problem. Is it?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform