How to distribute an xml file with a dll

D

Dirk

I want to distribute an xml file with my dll and to be able to write and
read the xml file when any Windows Forms application uses the dll. What is
the best approach?

Everything I'm reading distributes the xml files with the App (exe). What
are the pitfalls?
 
D

Dirk

I solved my problem. Include the xml file as a resource in the
project/properties dialog.

Then

Dim sr As New StringReader(My.Resources.MyXML)

MyDataSet.ReadXml(sr)



At run time I create a copy of the xml file in the current directory and use
that for writing and reading.
 

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