Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XmlDataDocument
Message
De
26/08/2006 10:19:22
 
 
À
25/08/2006 18:13:38
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01148739
Message ID:
01148809
Vues:
19
Rick,

Rather than mess with the XmlDataDocument class, have you tried simply reading the XML file directly with the DataSet's ReadXml() method?
MyTypedDataSet ds = new MyTypedDataSet();
ds.ReadXml(MyXmlFile);
~~Bonnie

>I am trying to synchronize an XML file with a DataSet. As such I am trying to use the XmlDataDocument class. I have a strongly typed DataSet but do not want to use a schema with the XML file. Unfortunately, when I load the XML into the XmlDataDoc I can see the tables, but not any rows in the tables. Am I doing something wrong here or do I have to have a schema with the XML file for this to work? BTW it does work with the schema but as soon as I remove the reference to the schema from the XML document I stop seeing the data rows.
>
>Thanks
>
>Rick Grinter
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform