Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. dataset to xmlfile

dataset to xmlfile

Scheduled Pinned Locked Moved Visual Basic
xmlhelpquestionlearning
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Makniteasy
    wrote on last edited by
    #1

    I am having trouble writing data to my xml file. I already have a StreamReader that reads the data, but when I use StreamWriter to write the data back out to the file, it writes data, but it writes blank data. It clears my file so the next time I try to run my program an error message says it can't find the origional table that was in my file before, of course thats because it isn't there now. any suggestions on what I may be doing wrong? I am writing from a form with a datagrid. HAPPY HOLIDAYS

    T 1 Reply Last reply
    0
    • M Makniteasy

      I am having trouble writing data to my xml file. I already have a StreamReader that reads the data, but when I use StreamWriter to write the data back out to the file, it writes data, but it writes blank data. It clears my file so the next time I try to run my program an error message says it can't find the origional table that was in my file before, of course thats because it isn't there now. any suggestions on what I may be doing wrong? I am writing from a form with a datagrid. HAPPY HOLIDAYS

      T Offline
      T Offline
      Tom John
      wrote on last edited by
      #2

      You are probably not closing the file properly after you have written to it. Have a look at the DataSet.ReadXml and DataSet.WriteXml on MSDN, both have examples of how to code it properly: DataSet.ReadXml - MSDN[^] DataSet.WriteXml - MSDN[^] Hope this helps Tom

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups