Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

create and write to xml file

$
0
0

I want to write to an XML file that is contained within my project solution. I am unloading data from a database and I want to write this data in XML format to a file and use and this file as the document source in a WebControls.XML datasource. 

I am using vb.net.

The statement: Using writer As New StreamWriter("OOBSv1.xml", True) only looks for this file on my system disc rather than within my solution.

At the moment I am writing the XML to a Text Box and then I cut and paste the output into the file via the VS 2017 editor. This works but I would like to automate it.


NJDR


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>