Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...