How to use XML file as data set ?

M

Marc Hillman

I have a simple VB.NET Express 2008 application that works. It uses an
Access 2007 database to store its data. Data is available on a form using a
DataGridView with BindingSource and BindingNavigator.

Access 2007 is a bit of a sledgehammer to crack a peanut, and gives me
portability issues. There's only a single table and 100 records.

I'd really like to use an XML data file for simplicity. I have the data in
an XML file, and I have the associated schema file. How do I define a data
source? XML doesn't seem to be an option.

I can't see how to hook it into my project at design time. I can do it at
run time, but I'd like to do it at design time so that I can see how the
DataGridView screen will look with real columns.

Is this possible? How?
 
C

Cor Ligthert[MVP]

ds.WriteXML(Path,Options) writes dataset as XML file to disk
ds.ReadXML(Path) reads a XML file from disk.

Be so clever to add in the options the schema (is intellisence)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top