Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSet.WriteXML change schema ID
Message
De
01/12/2015 13:49:15
 
 
Information générale
Forum:
ASP.NET
Catégorie:
XML
Versions des environnements
Environment:
VB 9.0
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01628174
Message ID:
01628176
Vues:
33
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform