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 related question?

Dataset related question?

Scheduled Pinned Locked Moved Visual Basic
questionsalesxml
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.
  • T Offline
    T Offline
    Tridip Bhattacharjee
    wrote on last edited by
    #1

    Say suppose I have populated two tables data in dataset called one “Customer” and other “Order”. How could I save the customer table detail to any xml file from my Dataset? Please give me the code by which I can save only one table detail to xml file if there is 10 tables detail in my dataset. tbhattacharjee

    P 1 Reply Last reply
    0
    • T Tridip Bhattacharjee

      Say suppose I have populated two tables data in dataset called one “Customer” and other “Order”. How could I save the customer table detail to any xml file from my Dataset? Please give me the code by which I can save only one table detail to xml file if there is 10 tables detail in my dataset. tbhattacharjee

      P Offline
      P Offline
      Pratik Desai
      wrote on last edited by
      #2

      'Suppose in the dataset ds you have three tables 'Customer, Order and Supplier. If you want to save 'the Customer table. Below is the code 'Duplicate the table and add it to a DataSet Dim datatb As DataTable = ds.Tables("Customer") Dim datatbTmp As DataTable = datatb.Copy() Dim dsTmp As DataSet = New DataSet() dsTmp.Tables.Add(datatbTmp) 'Save data to xml file and schema file dsTmp.WriteXml(Server.MapPath("Customers.xml"), XmlWriteMode.IgnoreSchema) dsTmp.WriteXmlSchema(Server.MapPath("Customers.xsd"))

      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