Click here to Skip to main content
15,892,797 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can you please show me how to read in this xml file to DataSets and then to BulkCopy to sql tables. Apologies if it looks messy. the cut and paste doesn't seem to work properly

XML
<?xml version="1.0" encoding="UTF-8"?>
<Root Giorno="2015-04-27" Soldi="0" Assegni="0" Rimborsi="0" CartaCredito="3321.69" Filiale="Milano" Codice="932561">
	<Ordine nulla="false" Tipo="Dentro" Tavola="38" Cam="Egli" Scontrino="false" Pagabile="37.2" Mancia="0" Deposito="0" ID="568947">
		<Entrata Cameriere="Giove" Prezzo="5.99" Numero="1" Ora="2015-04-27">
			<Prodotto Nome="Birra" CodiceProdotto="1" Categoria="788"/>
		</Entrata>
		<Entrata Cameriere="Giove" Prezzo="6.55" Numero="1" Ora="2015-04-27">
			<Prodotto Nome="Bott Acqua" CodiceProdotto="1089" Categoria="850"/>
		</Entrata>
		<Entrata Cameriere="Giove" Prezzo="2.15" Numero="2" Ora="2015-04-27">
			<Prodotto Nome="Espresso" CodiceProdotto="1022" Categoria="424"/>
		</Entrata>
	</Ordine>
</Root>
Posted
Comments

1 solution

I suggest you search via google. It is too verbose to show directly here. One article that may get you started is Using XML in C# in the simplest way[^]

Once you have got going you can come back to us with explicit problems you may be having.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900