Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataSet.WriteXML change schema ID
Message
From
01/12/2015 13:49:15
 
General information
Forum:
ASP.NET
Category:
XML
Environment versions
Environment:
VB 9.0
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01628174
Message ID:
01628176
Views:
34
>When you write XML from a dataset, the .NET class automatically sets the schema ID as "NewDataSet". Is it possible to change it, to specify your own ID name? (e.g. "VFPDataSet"). I think the proper name is "root attribute".
>
>Also, to change the element name from default "table" to something different?
>
>Here is an example:
>
>    mydataset.WriteXml( "PM_TESTING.XML", XmlWriteMode.WriteSchema )
>
You can change the default table name like this:
            ' Adjust to our default name
            oDataSet.Tables("Table").TableName = "Temp"
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
Next
Reply
Map
View

Click here to load this message in the networking platform