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. C#
  4. Writing xml file from dataset

Writing xml file from dataset

Scheduled Pinned Locked Moved C#
databasexmltutorialquestion
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.
  • A Offline
    A Offline
    anu81
    wrote on last edited by
    #1

    hi all, I have a dataset which has four tables. say for eg, Table A, Table B, Table C and Table D. Table A and Table B are related using PK - FK relation.Table B and Table D are related using PK - FK relation. Table A and Table C are related using PK - FK relation. i need to create a xml file based on these relations. i need to have a node which has the related values of all the tables. I tried using a single query to extract values based on inner joins. but that comes as a single table and the nodes are repeated. or can anybody suggest me how to group two tables into a single node in xml. i can do all this by manually creating a xml file from the dataset. but I am using dataset.WriteXml method to create the xml file. Is there any option to do this?

    Thanks in advance.:) Regards Anuradha

    J 1 Reply Last reply
    0
    • A anu81

      hi all, I have a dataset which has four tables. say for eg, Table A, Table B, Table C and Table D. Table A and Table B are related using PK - FK relation.Table B and Table D are related using PK - FK relation. Table A and Table C are related using PK - FK relation. i need to create a xml file based on these relations. i need to have a node which has the related values of all the tables. I tried using a single query to extract values based on inner joins. but that comes as a single table and the nodes are repeated. or can anybody suggest me how to group two tables into a single node in xml. i can do all this by manually creating a xml file from the dataset. but I am using dataset.WriteXml method to create the xml file. Is there any option to do this?

      Thanks in advance.:) Regards Anuradha

      J Offline
      J Offline
      jowecape
      wrote on last edited by
      #2

      I am also having a problem like that. I have have an XML file, and i created a key in the XML Schema. My problem is that if i load my xml file into a dataset and try to "find[primary]", the compiler generates an exception that there is no primary key defined. Can u help?

      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