Jay1b Posted October 9, 2006 Posted October 9, 2006 Hi I have a typed dataset call dsOptions with a table called dtOptions. The form has a datagridview on it with the datasource set to the 'DtOptionsBindingSource1' and no datamember. When this is assigned the columns are displayed on the datagridview. I've also tried is as the datasource equal dsOptionsBindingSource1 and the data member set to dtOptions. I then load the program, type in some data and then press a button which calls the following. Dim myXmlWriter As New System.Xml.XmlTextWriter("hey.xml", System.Text.Encoding.Unicode) DsOptions.WriteXml(myXmlWriter) DsOptions.WriteXml("hey.txt") DsOptions.WriteXml("heynoschema.txt", XmlWriteMode.IgnoreSchema) myXmlWriter.Close() However non of the above options actually output the full XML and data. Instead i just get the following. <?xml version="1.0" standalone="yes"?> <dsOptions xmlns="http://tempuri.org/dsOptions.xsd" /> But thats it. Can someone please tell me what i'm doing wrong? Thanks Jay Quote
Jay1b Posted October 9, 2006 Author Posted October 9, 2006 Well i've found out its the dataset thats not being updated. Which isnt an XML problem so i'll post this in the main area. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.