PC Review


Reply
Thread Tools Rate Thread

DataSet.ReadXml question

 
 
stefano_mi74@yahoo.it
Guest
Posts: n/a
 
      22nd Nov 2007
Hi all,
I've created my xml file and I try to read it with :
DataSet ds = new DataSet();
ds.ReadXml("Myfile.xml", XmlReadMode.InferSchema);

Now in the my DataSet there are 4 table but I believe that it should
read only 2 tables (Spares and Ambientali).

How can I obtain the only 2 table above mentioned ?

Thanks in advance
Stefano Magni

<?xml version="1.0" standalone="yes"?>
<Configurazione>
<Spares>
<Spare>
<Identificativo>1</Identificativo>
<Descrizione>SPARE1</Descrizione>
</Spare>
<Spare>
<Identificativo>2</Identificativo>
<Descrizione>SPARE2</Descrizione>
</Spare>
</Spares>
<Ambientali>
<Ambientale>
<Identificativo>1</Identificativo>
<Descrizione>b1</Descrizione>
</Ambientale>
<Ambientale>
<Identificativo>2</Identificativo>
<Descrizione>b2</Descrizione>
</Ambientale>
</Ambientali>
</Configurazione>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataSet.ReadXml() Jonathan Wood Microsoft ADO .NET 6 4th Aug 2008 01:00 AM
ReadXml() method: standard DataSet vs. typed DataSet MikeOtown Microsoft ADO .NET 0 6th Dec 2007 05:15 PM
Re: does DataSet.ReadXml() clear current table information on DataSet CrunkByte Microsoft Dot NET Framework 0 21st May 2005 03:11 AM
Question about dataset readxml method Raymond Du Microsoft ASP .NET 1 6th Dec 2004 07:13 AM
A question on DataSet.ReadXml. Manuel Vázquez Acosta Microsoft ADO .NET 2 31st Aug 2004 04:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:01 AM.