Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataSetToXml() and trimming fields
Message
De
06/04/2008 21:19:31
 
 
À
06/04/2008 19:06:58
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01308460
Message ID:
01308624
Vues:
17
>If you didn't need the schema in the XML, and if you allowed nulls, then you wouldn't have a problem because the DataSet.GetXML() method wouldn't include that empty column at all.
>
>We use Typed DataSets, so we don't include the schema in any of our XML that gets passed around ... the XML only contains the data and when it gets read back into a Typed DataSet, that's what provides the schema. No need to include the schema in the XML. Columns in the data that contain DBNull.Value simply don't have a tag in the XML at all.
>
>This probably doesn't help you much, since I assume you need the schema in the XML for some reason, but it's something to think about.

Yes, we cannot change the signature of the XML header that we send. I am trying to know if there is a safe way to parse such an XML for such purpose.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform