patrickstrijdonck
Programmer
Hi All,
For a urgent work project I need to create an XML file from a c# program. In my access database there is a table called tblparcels.
it contains all parcel information.
not only the table information needs to be added, 2 fixed fields need to be added.
the XML should look like this:
Everything between <Parcel> </Parcel> is a record in that table.
I believe I need a datatable to start with, I know how to create that in c#.
If anyone can shoot me into the right direction for the XML part, would be very great
Happy Easter everyone!
For a urgent work project I need to create an XML file from a c# program. In my access database there is a table called tblparcels.
it contains all parcel information.
not only the table information needs to be added, 2 fixed fields need to be added.
the XML should look like this:
Code:
<Shipment>
<Userid>Myusername</Userid>
<Password>Mypassword</Userid>
<Parcel>
<Tablefield1>Field1</Tablefield1>
</Parcel>
<Parcel>
<Tablefield1>Field1</Tablefield1>
</Parcel>
</Shipment>
Everything between <Parcel> </Parcel> is a record in that table.
I believe I need a datatable to start with, I know how to create that in c#.
If anyone can shoot me into the right direction for the XML part, would be very great
Happy Easter everyone!